Commit a5459716 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 a0b3eb3d
...@@ -403,7 +403,7 @@ module API ...@@ -403,7 +403,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