File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ export class UsernameEmailAdminGuard implements CanActivate {
2323 args . username . toLowerCase ( ) === user . username . toLowerCase ( ) ;
2424 } else if ( args . email && typeof args . email === 'string' ) {
2525 shouldActivate = args . email . toLowerCase ( ) === user . email . toLowerCase ( ) ;
26+ } else if ( ! args . username && ! args . email ) {
27+ shouldActivate = true ;
2628 }
2729 }
2830 if ( ! shouldActivate ) {
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ export class UsernameEmailGuard implements CanActivate {
2323 args . username . toLowerCase ( ) === user . username . toLowerCase ( ) ;
2424 } else if ( args . email && typeof args . email === 'string' ) {
2525 shouldActivate = args . email . toLowerCase ( ) === user . email . toLowerCase ( ) ;
26+ } else if ( ! args . username && ! args . email ) {
27+ shouldActivate = true ;
2628 }
2729 }
2830 if ( ! shouldActivate ) {
You can’t perform that action at this time.
0 commit comments