ICategoryNodeAllowAccess Method Ingeniux CMS Content Store API

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: 9.0.565.0 (9.0.565)
Syntax

bool AllowAccess(
	IUser user,
	EnumNodeLevelPermission accessType
)

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: Boolean
True 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

Reference