diff options
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index f305da681c4..e00fb61f478 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -502,7 +502,9 @@ module API link = user_project.project_group_links.find_by(group_id: params[:group_id]) not_found!('Group Link') unless link - destroy_conditionally!(link) + destroy_conditionally!(link) do + ::Projects::GroupLinks::DestroyService.new(user_project, current_user).execute(link) + end end # rubocop: enable CodeReuse/ActiveRecord |