Remove privileged_staff

Everything that was done through this setting, can now be set by giving the proper privileges to the roles.
This commit is contained in:
Ilja 2022-05-26 14:51:53 +02:00
commit 5a65e2dac5
8 changed files with 4 additions and 120 deletions

View file

@ -256,8 +256,7 @@ config :pleroma, :instance,
show_reactions: true,
password_reset_token_validity: 60 * 60 * 24,
profile_directory: true,
privileged_staff: false,
admin_privileges: [:user_deletion, :user_credentials],
admin_privileges: [:user_deletion, :user_credentials, :statuses_read],
moderator_privileges: [],
max_endorsed_users: 20,
birthday_required: false,

View file

@ -960,23 +960,17 @@ config :pleroma, :config_description, [
type: :boolean,
description: "Enable profile directory."
},
%{
key: :privileged_staff,
type: :boolean,
description:
"Let moderators access sensitive data (e.g. updating user credentials, get password reset token, delete users, index and read private statuses and chats)"
},
%{
key: :admin_privileges,
type: {:list, :atom},
suggestions: [:user_deletion, :user_credentials],
suggestions: [:user_deletion, :user_credentials, :statuses_read],
description:
"What extra priviledges to allow admins (e.g. updating user credentials, get password reset token, delete users, index and read private statuses and chats)"
},
%{
key: :moderator_privileges,
type: {:list, :atom},
suggestions: [:user_deletion, :user_credentials],
suggestions: [:user_deletion, :user_credentials, :statuses_read],
description:
"What extra priviledges to allow moderators (e.g. updating user credentials, get password reset token, delete users, index and read private statuses and chats)"
},