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)))); } }
public bool HasAccessToItem(GenericItemPermissionObjectTypes type, int objectId, Account user) { return(_dal.HasAccessToItem(type, objectId, user)); }
public IList <int> GetObjectIdsOfType(GenericItemPermissionObjectTypes type, Account user) { throw new NotImplementedException(); }