FIX: 2fa check error for anon users (#27924)
This commit is contained in:
parent
d32675ace2
commit
0b7099f34e
|
@ -43,7 +43,7 @@ export default class RestrictedRouting extends Service {
|
||||||
// methods in ApplicationController.
|
// methods in ApplicationController.
|
||||||
const enforcing2fa =
|
const enforcing2fa =
|
||||||
(this.siteSettings.enforce_second_factor === "staff" &&
|
(this.siteSettings.enforce_second_factor === "staff" &&
|
||||||
this.currentUser.staff) ||
|
this.currentUser?.staff) ||
|
||||||
this.siteSettings.enforce_second_factor === "all";
|
this.siteSettings.enforce_second_factor === "all";
|
||||||
|
|
||||||
const exemptedFrom2faEnforcement =
|
const exemptedFrom2faEnforcement =
|
||||||
|
|
Loading…
Reference in New Issue