Skip to content
Snippets Groups Projects
Commit 5b091c76 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #5512 from jhollingsworth/feature/missing-group-500-fix

Fixes 500 error when user types in wrong group name.
parents 0f665f41 dfe19b2b
Branches
Tags
1 merge request!1Fix Links To Gitlab Cloud
Loading
@@ -6,6 +6,7 @@ v 6.3.0
Loading
@@ -6,6 +6,7 @@ v 6.3.0
- Show branches list (which branches contains commit) on commit page (Andrew Kumanyaev) - Show branches list (which branches contains commit) on commit page (Andrew Kumanyaev)
- Security improvements - Security improvements
- Added support for GitLab CI 4.0 - Added support for GitLab CI 4.0
- Fixed issue with 500 error when group did not exist
   
v 6.2.0 v 6.2.0
- Public project pages are now visible to everyone (files, issues, wik, etc.) - Public project pages are now visible to everyone (files, issues, wik, etc.)
Loading
Loading
Loading
@@ -102,7 +102,7 @@ class GroupsController < ApplicationController
Loading
@@ -102,7 +102,7 @@ class GroupsController < ApplicationController
   
# Dont allow unauthorized access to group # Dont allow unauthorized access to group
def authorize_read_group! def authorize_read_group!
unless projects.present? or can?(current_user, :read_group, @group) unless @group and (projects.present? or can?(current_user, :read_group, @group))
return render_404 return render_404
end end
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment