ThibG 720daa8143 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
2018-12-11 19:18:29 +01:00
..
2017-05-08 15:56:00 +02:00
2018-11-26 15:53:27 +01:00
2018-01-28 22:48:09 +09:00
2018-01-22 14:20:58 +01:00
2018-02-01 07:33:54 +09:00
2017-05-08 15:56:00 +02:00
2018-01-28 22:48:09 +09:00
2017-12-08 01:59:44 +01:00
2018-01-28 22:48:09 +09:00
2018-01-09 20:30:28 +09:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-27 13:38:03 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-12-11 05:38:57 +01:00
2018-12-07 21:08:29 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00
2018-11-26 15:53:27 +01:00