forked from External/greenlight
Allowed admins to share room with themselves (#2442)
This commit is contained in:
@ -209,7 +209,7 @@ class UsersController < ApplicationController
|
||||
roles_can_appear << role.name if role.get_permission("can_appear_in_share_list") && role.priority >= 0
|
||||
end
|
||||
|
||||
initial_list = User.where.not(uid: current_user.uid)
|
||||
initial_list = User.where.not(uid: params[:owner_uid])
|
||||
.with_role(roles_can_appear)
|
||||
.shared_list_search(params[:search])
|
||||
.pluck_to_hash(:uid, :name)
|
||||
|
Reference in New Issue
Block a user