summaryrefslogtreecommitdiff
path: root/app/controllers/groups/group_links_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/groups/group_links_controller.rb')
-rw-r--r--app/controllers/groups/group_links_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/groups/group_links_controller.rb b/app/controllers/groups/group_links_controller.rb
index 3b775af9722..0655d779a4e 100644
--- a/app/controllers/groups/group_links_controller.rb
+++ b/app/controllers/groups/group_links_controller.rb
@@ -11,8 +11,8 @@ class Groups::GroupLinksController < Groups::ApplicationController
if shared_with_group
result = Groups::GroupLinks::CreateService
- .new(shared_with_group, current_user, group_link_create_params)
- .execute(group)
+ .new(group, shared_with_group, current_user, group_link_create_params)
+ .execute
return render_404 if result[:http_status] == 404