public PermissionHelperResult SetPrefix(string prefix, string group)
        {
            RocketPermissionsGroup Group = Permissions.GetGroup(group);

            if (Group != null)
            {
                if (Group.Prefix != prefix)
                {
                    Group.Prefix = prefix;
                    Permissions.SaveGroup(Group);
                    return(PermissionHelperResult.Success);
                }
                else if (Group.Prefix == prefix)
                {
                    return(PermissionHelperResult.DuplicateEntry);
                }
            }
            else if (Group == null)
            {
                return(PermissionHelperResult.GroupNotFound);
            }
            return(PermissionHelperResult.UnspecifiedError);
        }
 public RocketPermissionsProviderResult SaveGroup(RocketPermissionsGroup group) => _basePermissionProvider.SaveGroup(@group);
Exemple #3
0
 public RocketPermissionsProviderResult SaveGroup(RocketPermissionsGroup group)
 {
     return(_defaultProvider.SaveGroup(group));
 }
 public RocketPermissionsProviderResult SaveGroup(RocketPermissionsGroup group)
 {
     return(Underlying.SaveGroup(group));
 }