2fa portals

This commit is contained in:
Yuri Kuznetsov
2023-04-06 14:29:51 +03:00
parent 048c83def8
commit 922a2e835c
12 changed files with 57 additions and 11 deletions

View File

@@ -55,7 +55,8 @@ class TwoFactorEmail
if (
!$this->user->isAdmin() &&
!$this->user->isRegular()
!$this->user->isRegular() &&
!$this->user->isPortal()
) {
throw new Forbidden();
}