BaseInfo CheckPermissionsWithHandler Method Kentico 8.0 API Reference
Checks whether the specified user has permissions for this object. Outcome of this method is determined by combining results of CheckPermissions event and CheckPermissionsInternal method.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

permission
Type: CMS.DataEngine PermissionsEnum
Permission to perform this operation will be checked
currentSiteName
Type: OnlineSystem String
Name of the current context site. Permissions are checked on this site only when the site name cannot be obtained directly from the info object (from SiteIDColumn or site binding).
userInfo
Type: CMS.Base IUserInfo
Permissions of this user will be checked
exceptionOnFailure
Type: OnlineSystem Boolean
If true, PermissionCheckException is thrown whenever a permission check fails

Return Value

Type: OnlineBoolean
True if user is allowed to perform specified operation on the this object; otherwise false
See Also