ICategoryNodeAllowAccess Method
|
Check if a given
IUser is allowed the type of access specified.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax bool AllowAccess(
IUser user,
EnumNodeLevelPermission accessType
)
Function AllowAccess (
user As IUser,
accessType As EnumNodeLevelPermission
) As Boolean
bool AllowAccess(
IUser^ user,
EnumNodeLevelPermission accessType
)
abstract AllowAccess :
user : IUser *
accessType : EnumNodeLevelPermission -> bool
Parameters
- user
- Type: Ingeniux.CMSIUser
User on whom to check access level. - accessType
- Type: Ingeniux.CMS.EnumsEnumNodeLevelPermission
Type of access to check for.
Return Value
Type:
BooleanTrue if the highest permission level of all groups this user belongs to is greater than or equal to the given permission. Otherwise, this method returns false.
Remarks Please note that if the accessType parameter value is
NO_ACCESS, this method
will always return true, regardless of whether there are any permissions defined for groups the user belongs to.
See Also