Skip to content
Snippets Groups Projects
Unverified Commit 67569f6e authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Fixed issue that allowed viewing all users in shared access modal (#3432)

* Fixed issue that allowed viewing all users in shared access modal

* rubo
parent 737a8ee8
Branches
Tags
No related merge requests found
......@@ -198,7 +198,7 @@ class UsersController < ApplicationController
# GET /shared_access_list
def shared_access_list
# Don't allow searchs unless atleast 3 characters are passed
return redirect_to '/404' if params[:search].length < 3
return redirect_to '/404' unless params[:search].strip.length >= 3
roles_can_appear = []
Role.where(provider: @user_domain).each do |role|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment