Exemple #1
0
        public bool IsUserAuthorised(Common.Enum.Rights right, User user)
        {
            bool returnValue = false;
            int  count       = user.AllRights.FindAll(e => e.RightId == (int)right).Count();

            if (count > 0)
            {
                returnValue = true;
            }
            return(returnValue);
        }
Exemple #2
0
 public bool IsUserAuthorised(Common.Enum.Rights right)
 {
     return(new UserManager().IsUserAuthorised(right, this));
 }