C-DEngine 5.105

TheUserManager..::..HasUserAccess Method (Guid, Int32, Boolean)

Checks if the user with the gived ID has the access permission defined in ACL.

Namespace:  nsCDEngine.Security
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static bool HasUserAccess(
	Guid pCurrentUserID,
	int ACL,
	bool AdminHasAccess
)
Public Shared Function HasUserAccess ( _
	pCurrentUserID As Guid, _
	ACL As Integer, _
	AdminHasAccess As Boolean _
) As Boolean
public:
static bool^ HasUserAccess(
	Guid^ pCurrentUserID, 
	int^ ACL, 
	bool^ AdminHasAccess
)

Parameters

pCurrentUserID
Type: Guid
User ID to be checked
ACL
Type: Int32
Returns true if the user has this access Level
AdminHasAccess
Type: Boolean
if this is true, the function only returns true of the user has Admin rights

Return Value