Click or drag to resize

BCRepositoryHasPrivilege Method (String, String, String)

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.111.0)
Syntax
public bool HasPrivilege(
	string userName,
	string enclosureID,
	string privilegeName
)

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.

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