Fixed issue with LDAP role not being respected (#1728)

This commit is contained in:
Ahmad Farhat
2020-06-02 16:50:52 -04:00
committed by GitHub
parent 737d39dce9
commit 13fb9faa4c
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ class SessionsController < ApplicationController
send_invite_user_signup_email(user) if invite_registration && !@user_exists
user.set_role :user unless @user_exists
user.set_role :user if !@user_exists && user.role.nil?
login(user)