Click or drag to resize

IDatabaseRepositoryHasAuthorization Method (IParty, String, Int32)

Detects if the user has the required authorization level for the party.

Namespace:  PDTec.IceNet.Core.Database
Assembly:  PDTec.IceNet.Core (in PDTec.IceNet.Core.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
bool HasAuthorization(
	IParty pParty,
	string userName,
	int authLevelRequired
)

Parameters

pParty
Type: PDTec.IceNet.Core.Database.UserManagementIParty
The party.
userName
Type: SystemString
The user name.
authLevelRequired
Type: SystemInt32
The required authorization level.

Return Value

Type: Boolean
true if the user has the required authorization level, otherwise false.
Remarks
This method recognizes authorization derived by group/role membership and from profile "System.All". To retrieve the actual ACL entries of this party use the GetAuthorizations(IParty) method.
See Also