public override bool BeforeSaveSettings(RoleSettings roleSettings)
        {

            if (My.IsOwner)
            {
                PermissionSettings settings = SettingManager.CloneSetttings<PermissionSettings>(AllSettings.Current.PermissionSettings);

                settings.ContentPermissionLimit.LimitType = _Request.Get<PermissionLimitType>("ContentPermissionLimit", Method.Post, PermissionLimitType.RoleLevelLowerMe);
                settings.UserPermissionLimit.LimitType = _Request.Get<PermissionLimitType>("UserPermissionLimit", Method.Post, PermissionLimitType.RoleLevelLowerMe);

                if (settings.ContentPermissionLimit.LimitType == PermissionLimitType.ExcludeCustomRoles)
                {
                    string key = "content.{0}.{1}";
                    GetLimitRoleList(key, settings.ContentPermissionLimit);
                }

                if (settings.UserPermissionLimit.LimitType == PermissionLimitType.ExcludeCustomRoles)
                {
                    string key = "user.{0}.{1}";
                    GetLimitRoleList(key, settings.UserPermissionLimit);
                }
                
                SettingManager.SaveSettings(settings);
            }

            return true;
        }
 public override bool BeforeSaveSettings(RoleSettings roleSettings)
 {
     roleSettings.LevelLieOn = _Request.Get<LevelLieOn>("levellieon", Method.Post, LevelLieOn.Point);
     return true;
 }
 public virtual bool BeforeSaveSettings(RoleSettings roleSettings)
 {
     return true;
 }