2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-09 15:29:41 +08:00

FIX: Staff users are not affected by enable_group_directory site setting.

This commit is contained in:
Guo Xiang Tan 2018-04-10 09:22:01 +08:00
parent 6995382323
commit d9d86577ff
3 changed files with 27 additions and 4 deletions

View file

@ -37,7 +37,7 @@ class GroupsController < ApplicationController
}
def index
unless SiteSetting.enable_group_directory?
unless SiteSetting.enable_group_directory? || current_user&.staff?
raise Discourse::InvalidAccess.new(:enable_group_directory)
end