summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/groups_controller.rb4
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