Example #1
0
 /// <summary>
 /// Returns Ids of all users that have all given permission on the entity.
 /// User will be resulted even if the permissions are granted on a group where she is member directly or indirectly.
 /// </summary>
 /// <param name="entityId">Id of the entity.</param>
 /// <param name="permissions">Only those users appear in the output that have permission settings in connection with the given permissions.</param>
 protected IEnumerable <int> GetAllowedUsers(int entityId, IEnumerable <PermissionTypeBase> permissions)
 {
     return(PermissionQuery.GetAllowedUsers(this, entityId, permissions));
 }
Example #2
0
 /// <summary>
 /// Returns Ids of all users that have all given permission on the entity.
 /// User will be resulted even if the permissions are granted on a group where she is member directly or indirectly.
 /// </summary>
 /// <param name="entityId">Id of the entity.</param>
 /// <param name="permissions">Only those users appear in the output that have permission settings in connection with the given permissions.</param>
 public virtual IEnumerable <int> GetAllowedUsers(int entityId, IEnumerable <PermissionTypeBase> permissions)
 {
     return(_permissionQuery.GetAllowedUsers(this, entityId, permissions));
 }