501stLegionA3 / FiveOhFirstDataCore

A Web App designed to manage the 501st Legion StarSim Roster.
https://dc.501stlegion-a3.com/
MIT License
8 stars 12 forks source link

If no user is logged in force admin fails. #394

Closed jdoxley closed 2 years ago

jdoxley commented 2 years ago

Describe the bug

When you use force admin on an authorizationhandler and there is no user logged in a 'Value cannot be null' exception occurs in the local user buss

To Reproduce

Steps to reproduce the behavior:

  1. Use an AuthorizationHandler and force admin
  2. If logged out error will occur when it trys to proccess
  3. If logged in log out and see error

Expected behavior

Not throw an exception

Screenshots

image