log when we un-current a user due to unavailability
Change-Id: I920f824dff5f35786839dbd1edcbbb82f2586a77 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/245250 Reviewed-by: Cody Cutrer <cody@instructure.com> QA-Review: Cody Cutrer <cody@instructure.com> Product-Review: Cody Cutrer <cody@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
This commit is contained in:
parent
a0dfe0a334
commit
7a4c7b9bef
|
@ -223,6 +223,7 @@ module AuthenticationMethods
|
|||
end
|
||||
|
||||
if @current_user && @current_user.unavailable?
|
||||
logger.info "Invalid request: User is currently UNAVAILABLE"
|
||||
@current_pseudonym = nil
|
||||
@current_user = nil
|
||||
end
|
||||
|
@ -283,6 +284,7 @@ module AuthenticationMethods
|
|||
end
|
||||
end
|
||||
|
||||
logger.info "auth loaded user id: #{@current_user&.id}"
|
||||
@current_user
|
||||
end
|
||||
private :load_user
|
||||
|
|
Loading…
Reference in New Issue