0
0
Fork 0

Add instance-wide setting to disable profile directory (#9497)

* Add instance-wide setting to disable profile directory

Fixes #9496

When the profile directory is disabled:
- The “discoverable” setting is hidden from users
- The “profile directory” link is not shown on public pages
- /explore returns 404

* Move Setting.profile_directory check to a before_action filter
This commit is contained in:
ThibG 2018-12-11 19:18:29 +01:00 committed by Eugen Rochko
parent a48fe52375
commit 720daa8143
10 changed files with 29 additions and 3 deletions

View file

@ -44,6 +44,8 @@ class Form::AdminSettings
:preview_sensitive_media=,
:custom_css,
:custom_css=,
:profile_directory,
:profile_directory=,
to: Setting
)
end