Beispiel #1
0
        public bool IsCurrentUserInRole(string role)
        {
            if (role == null)
            {
                throw new ArgumentNullException("role");
            }

            ApplicationServiceHelper.EnsureRoleServiceEnabled();
            return(Roles.IsUserInRole(role));
        }
Beispiel #2
0
 public string[] GetRolesForCurrentUser()
 {
     ApplicationServiceHelper.EnsureRoleServiceEnabled();
     return(Roles.GetRolesForUser());
 }