diff options
| author | Alibek Omarov <a1ba.omarov@gmail.com> | 2021-12-27 02:27:48 +0300 | 
|---|---|---|
| committer | Alibek Omarov <a1ba.omarov@gmail.com> | 2021-12-27 02:27:48 +0300 | 
| commit | cd1041c3a413b9b3ba4c763308b5fd77a53d7c3c (patch) | |
| tree | d85b6761b2007c67a73a3ade338c39e92f9db71a /config | |
| parent | 3b8eaadb0d8fb7c2e415340ac93f78b00b7dbb5d (diff) | |
| download | pleroma-cd1041c3a413b9b3ba4c763308b5fd77a53d7c3c.tar.gz pleroma-cd1041c3a413b9b3ba4c763308b5fd77a53d7c3c.zip | |
API: optionally restrict moderators from accessing sensitive data
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.exs | 3 | ||||
| -rw-r--r-- | config/description.exs | 5 | 
2 files changed, 7 insertions, 1 deletions
| diff --git a/config/config.exs b/config/config.exs index 23c41eddd..ec242cadc 100644 --- a/config/config.exs +++ b/config/config.exs @@ -255,7 +255,8 @@ config :pleroma, :instance,    ],    show_reactions: true,    password_reset_token_validity: 60 * 60 * 24, -  profile_directory: true +  profile_directory: true, +  privileged_staff: false  config :pleroma, :welcome,    direct_message: [ diff --git a/config/description.exs b/config/description.exs index 517077acf..a8fbd4d73 100644 --- a/config/description.exs +++ b/config/description.exs @@ -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)"        }      ]    }, | 
