public bool ApplicableSidekick()
        {
            bool admin = IsAdmin.CurrentUserAdmin();

            if (admin)
            {
                return(true);
            }
            if (AdminOnly)
            {
                return(false);
            }
            if (Roles.Count == 0)
            {
                return(true);
            }
            return(IsAdmin.CurrentUserInRoleList(Roles));
        }
 public bool IsCurrentUserInRole(IEnumerable <string> roles) =>
 IsAdmin.CurrentUserInRoleList(new List <string>(roles));