Fix adding a user to a group in admin section

This commit is contained in:
Sean McGivern 2016-08-18 23:33:50 +01:00
parent aba9cc6f22
commit 64d45a87cd
1 changed files with 1 additions and 1 deletions

View File

@ -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