示例#1
0
        //public static AdministratorWithPermissions Current
        //{
        //    get
        //    {
        //        var instance = new PermissionsManager(RequestBody.CurrentAdministratorName);
        //        return instance.Permissions;
        //    }
        //}

        public static AdministratorWithPermissions GetPermissions(string administratorName)
        {
            var instance = new PermissionsManager(administratorName);

            return(instance.Permissions);
        }
示例#2
0
 public AdministratorWithPermissions(string userName)
 {
     UserName           = userName;
     _rolesKey          = PermissionsManager.GetRolesKey(userName);
     _permissionListKey = PermissionsManager.GetPermissionListKey(userName);
 }