summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-04-12 21:34:24 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-13 11:11:09 +0200
commitb2f48d8c46cebcf2a576c18b661c3481b3450f3b (patch)
tree2586e6672f6b3b58bdc26b31d85099074528a43a /lib/api/helpers.rb
parent6bb71869b8c003e9e880646afa35050821e7dac9 (diff)
downloadgitlab-ce-b2f48d8c46cebcf2a576c18b661c3481b3450f3b.tar.gz
API: Return 404 if user does not have access to group
Diffstat (limited to 'lib/api/helpers.rb')
-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