Click or drag to resize

BCRoleBasedSecuredObjectIsPrivilegeGrantedToUser Method (String, String, PrivilegeNameFlags)

Determines whether the user has a privilege with the specified name.

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 IsPrivilegeGrantedToUser(
	string privilegeName,
	string userName,
	PrivilegeNameFlags flags
)

Parameters

privilegeName
Type: SystemString
The name of the privilege to check.
userName
Type: SystemString
The name of the user.
flags
Type: BlueCieloECM.InnoCielo.Meridian.ServerPrivilegeNameFlags
A bitmask that is a combination of bit flags from PrivilegeNameFlags.

Return Value

Type: Boolean
A value indicating whether the user has a privilege with the specified name.
Remarks

If flags has PRIVILEGE_NAME_CHECK_DOCTYPE flag then the privilege name will be combined with the Name property value of the document type of the object this method invoked on.

It is assumed that the object is a document and has a document type, otherwise the function will fail. If DTS is OFF, the function will behave as if PRIVILEGE_NAME_USE_ORIGINAL flag was specified.

See Also