Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-04-12 22:34:24 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-13 12:11:09 +0300
commitb2f48d8c46cebcf2a576c18b661c3481b3450f3b (patch)
tree2586e6672f6b3b58bdc26b31d85099074528a43a /lib
parent6bb71869b8c003e9e880646afa35050821e7dac9 (diff)
API: Return 404 if user does not have access to group
Diffstat (limited to 'lib')
-rw-r--r--lib/api/helpers.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 4921ae99e78..96af7d7675c 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -91,8 +91,7 @@ module API
if can?(current_user, :read_group, group)
group
else
- forbidden!("#{current_user.username} lacks sufficient "\
- "access to #{group.name}")
+ not_found!('Group')
end
end