mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: 2fa check error for anon users (#27924)
This commit is contained in:
@@ -43,7 +43,7 @@ export default class RestrictedRouting extends Service {
|
||||
// methods in ApplicationController.
|
||||
const enforcing2fa =
|
||||
(this.siteSettings.enforce_second_factor === "staff" &&
|
||||
this.currentUser.staff) ||
|
||||
this.currentUser?.staff) ||
|
||||
this.siteSettings.enforce_second_factor === "all";
|
||||
|
||||
const exemptedFrom2faEnforcement =
|
||||
|
||||
Reference in New Issue
Block a user