summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-08-18 23:33:50 +0100
committerSean McGivern <sean@gitlab.com>2016-08-18 23:33:50 +0100
commit64d45a87cd0b56c78580b49934eb0d344321694b (patch)
tree342800e05186563389141ea3f41646d30fdb76e4
parentaba9cc6f227a670390cbac0c5da97784afefc5ee (diff)
downloadgitlab-ce-64d45a87cd0b56c78580b49934eb0d344321694b.tar.gz
Fix adding a user to a group in admin section
-rw-r--r--app/controllers/admin/groups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/groups_controller.rb b/app/controllers/admin/groups_controller.rb
index 4ce18321649..cdfa8d91a28 100644
--- a/app/controllers/admin/groups_controller.rb
+++ b/app/controllers/admin/groups_controller.rb
@@ -42,7 +42,7 @@ class Admin::GroupsController < Admin::ApplicationController
end
def members_update
- @group.add_users(params[:user_ids].split(','), params[:access_level], current_user)
+ @group.add_users(params[:user_ids].split(','), params[:access_level], current_user: current_user)
redirect_to [:admin, @group], notice: 'Users were successfully added.'
end