Ant Organisation Ltd documentation

PermissionServer.HasPermission Method (AuthenticatedUser, PermissionableObject, Permission)

Returns true if the user has permission to access a permissionable object, false if not

bool HasPermission(
   AuthenticatedUser user,
   PermissionableObject permissionableObject,
   Permission permission
);

Parameters

user
User to check for permissions
permissionableObject
Object to try and access
permission
Permission to request from the permissionable object

Return Value

true if user can access

See Also

PermissionServer Interface | Ant.Security Namespace | PermissionServer.HasPermission Overload List