summaryrefslogtreecommitdiff
path: root/lib/api/v3/groups.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/groups.rb')
-rw-r--r--lib/api/v3/groups.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/groups.rb b/lib/api/v3/groups.rb
index 63d464b926b..dbf7a3cf785 100644
--- a/lib/api/v3/groups.rb
+++ b/lib/api/v3/groups.rb
@@ -45,7 +45,7 @@ module API
groups = if current_user.admin
Group.all
elsif params[:all_available]
- GroupsFinder.new.execute(current_user)
+ GroupsFinder.new(current_user).execute
else
current_user.groups
end