Commit 416a28b4 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 3418eb31
......@@ -373,7 +373,7 @@ def map_public_to_visibility_level(attrs)
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')
......
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