diff options
author | Go MAEDA <maeda@farend.jp> | 2023-01-05 12:51:35 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-01-05 12:51:35 +0000 |
commit | 2b74f121cd7f8caa5e7ab408a8d6267aeef0b810 (patch) | |
tree | bc68f08abea1d146493e496e2fceb4fe27ad0c6b /app/controllers | |
parent | 354ad625008316cc4347e8085bc93c2544d1c372 (diff) | |
download | redmine-2b74f121cd7f8caa5e7ab408a8d6267aeef0b810.tar.gz redmine-2b74f121cd7f8caa5e7ab408a8d6267aeef0b810.zip |
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
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/groups_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index c52b33008..85192a9d7 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -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 |