mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-10 19:23:06 +00:00
Merged r22023 from trunk to 5.0-stable (#38144).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22024 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
354ad62500
commit
2b74f121cd
@ -50,8 +50,6 @@ class GroupsController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
return render_404 unless @group.visible?
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
render :layout => 'base'
|
||||
@ -149,7 +147,7 @@ class GroupsController < ApplicationController
|
||||
private
|
||||
|
||||
def find_group
|
||||
@group = Group.find(params[:id])
|
||||
@group = Group.visible.find(params[:id])
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user