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
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-10-11 16:48:24 +0300
committerRémy Coutable <remy@rymai.me>2016-10-11 16:50:38 +0300
commit4fac20e302264434ce386036909b1979c03729c1 (patch)
treee94d14cc1e1fd23c165efc73b549360b9ab49a51
parentb637c447b5c3f65a957b115be0d022686a10a65e (diff)
Fix issue due to incompatible code on newer versions
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--lib/api/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 473c705f1d2..a5b7126d6d0 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -373,7 +373,7 @@ module API
authorize! :admin_project, user_project
required_attributes! [:group_id, :group_access]
- group = Group.find_by_id(attrs[:group_id])
+ group = Group.find_by_id(params[:group_id])
unless group && can?(current_user, :read_group, group)
not_found!('Group')