Carrotware.CMS.Core.SecurityData.IsUserInRole C# (CSharp) Метод

IsUserInRole() публичный статический Метод

public static IsUserInRole ( string groupName ) : bool
groupName string
Результат bool
        public static bool IsUserInRole(string groupName)
        {
            return IsUserInRole(SecurityData.CurrentUserIdentityName, groupName);
        }

Same methods

SecurityData::IsUserInRole ( string userName, string groupName ) : bool

Usage Example

Пример #1
0
 public bool RemoveFromRole(string roleName)
 {
     if (SecurityData.IsUserInRole(this.UserName, roleName))
     {
         SecurityData.RemoveUserFromRole(this.UserName, roleName);
         return(true);
     }
     else
     {
         return(false);
     }
 }
All Usage Examples Of Carrotware.CMS.Core.SecurityData::IsUserInRole