diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-18 21:40:35 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-19 20:50:05 +0900 |
commit | b5399517687edbe854f3bb51a89c30c13a3f12b4 (patch) | |
tree | fbcd01c6604cb406e05aa5163c7ca418b44ebaa1 /lib/api/helpers.rb | |
parent | 045e4de472b70754070f63abdf1f6a8397432435 (diff) | |
download | gitlab-ce-b5399517687edbe854f3bb51a89c30c13a3f12b4.tar.gz |
Ini
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 0f4791841d2..56cd1f3df5a 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -29,6 +29,10 @@ module API @project ||= find_project!(params[:id]) end + def user_group + @group ||= find_group!(params[:id]) + end + def available_labels @available_labels ||= LabelsFinder.new(current_user, project_id: user_project.id).execute end |