fix access#access route (#926)
This commit is contained in:
parent
0f85abfda2
commit
3759851621
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class AccessController < ApplicationController
|
|||
|
||||
# POST maps/:id/access
|
||||
def access
|
||||
user_ids = params[:access] || []
|
||||
user_ids = params[:access].to_a.map(&:to_i) || []
|
||||
|
||||
@map.add_new_collaborators(user_ids).each do |user_id|
|
||||
# add_new_collaborators returns array of added users,
|
||||
|
|
Loading…
Reference in a new issue