示例#1
0
 public bool HasAccessToItem(GenericItemPermissionObjectTypes type, int objectId, Account user)
 {
     using (CoreModel coreDAL = new CoreModel())
     {
         return(coreDAL.GenericItemPermission.Any(p => (p.ObjectType == (int)type && p.ObjectId == objectId && p.ClubId == user.ClubId) && (p.AccountId == user.ID || user.AccountAccess.Any(a => a.AccessID == p.AccessrightId))));
     }
 }
示例#2
0
 public bool HasAccessToItem(GenericItemPermissionObjectTypes type, int objectId, Account user)
 {
     return(_dal.HasAccessToItem(type, objectId, user));
 }
示例#3
0
 public IList <int> GetObjectIdsOfType(GenericItemPermissionObjectTypes type, Account user)
 {
     throw new NotImplementedException();
 }