mirror of
https://github.com/redmine/redmine.git
synced 2025-11-16 18:26:02 +01:00
Allow non-admin users to see group members (#12795).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21072 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,7 +21,7 @@ class GroupsController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin
|
||||
before_action :require_admin, :except => [:show]
|
||||
before_action :find_group, :except => [:index, :new, :create]
|
||||
accept_api_auth :index, :show, :create, :update, :destroy, :add_users, :remove_user
|
||||
|
||||
@@ -50,8 +50,12 @@ class GroupsController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
return render_404 unless @group.visible?
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.html do
|
||||
render :layout => 'base'
|
||||
end
|
||||
format.api
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user