diff options
author | 6543 <6543@obermui.de> | 2021-06-27 20:47:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-27 19:47:35 +0100 |
commit | 0b27b93728fd3cf2ecc82ac6a2b5859270543ef2 (patch) | |
tree | adbbc5eaec25e5e2c88068d45e3fa75435431dfe /custom/conf | |
parent | 2a98ec1c3cd2f8396f3b5148fc8c796802f9c236 (diff) | |
download | gitea-0b27b93728fd3cf2ecc82ac6a2b5859270543ef2.tar.gz gitea-0b27b93728fd3cf2ecc82ac6a2b5859270543ef2.zip |
Make allowed Visiblity modes configurable for Users (#16271)
Now that #16069 is merged, some sites may wish to enforce that users are all public, limited or private, and/or disallow users from becoming private.
This PR adds functionality and settings to constrain a user's ability to change their visibility.
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'custom/conf')
-rw-r--r-- | custom/conf/app.example.ini | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index e7fe9206ed..33ff7a62c5 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -656,6 +656,9 @@ PATH = ;; Public is for users visible for everyone ;DEFAULT_USER_VISIBILITY = public ;; +;; Set whitch visibibilty modes a user can have +;ALLOWED_USER_VISIBILITY_MODES = public,limited,private +;; ;; Either "public", "limited" or "private", default is "public" ;; Limited is for organizations visible only to signed users ;; Private is for organizations visible only to members of the organization |