API: optionally restrict moderators from accessing sensitive data

This commit is contained in:
Alibek Omarov 2021-12-27 02:27:48 +03:00
commit cd1041c3a4
5 changed files with 62 additions and 11 deletions

View file

@ -941,6 +941,11 @@ config :pleroma, :config_description, [
key: :profile_directory,
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)"
}
]
},