Click or drag to resize
BCRepositoryHasPrivilege Method (String, String, String, PrivilegeInfoFlags)
Determines whether the given user has the specified privilege.

Namespace: BlueCieloECM.InnoCielo.Meridian.Server
Assembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.19.0)
Syntax
public bool HasPrivilege(
	string userName,
	string enclosureID,
	string privilegeName,
	PrivilegeInfoFlags flags
)

Parameters

userName
Type: SystemString
The name of the user. If or an empty string, the current user is used.
enclosureID
Type: SystemString
The ID property value of an enclosure to get privileges from. If the specified object is not an enclosure, the server will find an active enclosure for it, taking into account the current context.
privilegeName
Type: SystemString
The name of the privilege to check.
flags
Type: BlueCieloECM.InnoCielo.Meridian.ServerPrivilegeInfoFlags
A bitmask that is a combination of bit flags from PrivilegeInfoFlags.

Return Value

Type: Boolean
A value indicating whether the given user has the specified privilege.
Remarks

If the caller is asking for document privileges and DTS is ON, the function will fail.

If the caller is asking for document-type privileges and DTS is OFF, the function will fail.

See Also