Commit 4fac20e3 authored by Rémy Coutable's avatar Rémy Coutable

Fix issue due to incompatible code on newer versions

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent b637c447
...@@ -373,7 +373,7 @@ module API ...@@ -373,7 +373,7 @@ module API
authorize! :admin_project, user_project authorize! :admin_project, user_project
required_attributes! [:group_id, :group_access] 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) unless group && can?(current_user, :read_group, group)
not_found!('Group') not_found!('Group')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment