diff options
author | Rémy Coutable <remy@rymai.me> | 2016-11-24 16:58:32 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-11-24 16:58:32 +0100 |
commit | 81ba3f9177fcfd76f6b3b715c572ce4920398345 (patch) | |
tree | bfcefba5a558d69051bf67f2cef2a259c0928942 /lib/api/issues.rb | |
parent | 4f5ed812325845f263fc9b566651c1179b5c24bc (diff) | |
download | gitlab-ce-81ba3f9177fcfd76f6b3b715c572ce4920398345.tar.gz |
API: Introduce `#find_group!` which also check access permission22373-reduce-queries-in-api-helpers-find_project
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api/issues.rb')
-rw-r--r-- | lib/api/issues.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb index eea5b91d4f9..2fea71870b8 100644 --- a/lib/api/issues.rb +++ b/lib/api/issues.rb @@ -68,7 +68,7 @@ module API # GET /groups/:id/issues?milestone=1.0.0 # GET /groups/:id/issues?milestone=1.0.0&state=closed get ":id/issues" do - group = find_group(params[:id]) + group = find_group!(params[:id]) params[:state] ||= 'opened' params[:group_id] = group.id |