diff options
author | Rémy Coutable <remy@rymai.me> | 2016-10-11 16:48:24 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-10-11 16:50:38 +0300 |
commit | 4fac20e302264434ce386036909b1979c03729c1 (patch) | |
tree | e94d14cc1e1fd23c165efc73b549360b9ab49a51 | |
parent | b637c447b5c3f65a957b115be0d022686a10a65e (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.rb | 2 |
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') |