diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 22:34:24 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-13 12:11:09 +0300 |
commit | b2f48d8c46cebcf2a576c18b661c3481b3450f3b (patch) | |
tree | 2586e6672f6b3b58bdc26b31d85099074528a43a /lib | |
parent | 6bb71869b8c003e9e880646afa35050821e7dac9 (diff) |
API: Return 404 if user does not have access to group
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/helpers.rb | 3 |
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 |