summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-01-26 12:16:47 +0100
committerJames Lopez <james@jameslopez.es>2016-01-26 12:16:47 +0100
commit89aeed183ccbadc9580945a68b8df83f50856c2c (patch)
tree46838271c51f28a26522b568f0349c81f40dbe82 /app/controllers
parenteb7f669073b2b95a1956de5e22f97dc8f83711e8 (diff)
downloadgitlab-ce-89aeed183ccbadc9580945a68b8df83f50856c2c.tar.gz
feature and fix for 500 on group missing
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/groups_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index fb26a4e6fc3..828e5509262 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -81,6 +81,7 @@ class GroupsController < Groups::ApplicationController
def group
@group ||= Group.find_by(path: params[:id])
+ render_404 unless @group
end
def load_projects