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 {
23
23
args . username . toLowerCase ( ) === user . username . toLowerCase ( ) ;
24
24
} else if ( args . email && typeof args . email === 'string' ) {
25
25
shouldActivate = args . email . toLowerCase ( ) === user . email . toLowerCase ( ) ;
26
+ } else if ( ! args . username && ! args . email ) {
27
+ shouldActivate = true ;
26
28
}
27
29
}
28
30
if ( ! shouldActivate ) {
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ export class UsernameEmailGuard implements CanActivate {
23
23
args . username . toLowerCase ( ) === user . username . toLowerCase ( ) ;
24
24
} else if ( args . email && typeof args . email === 'string' ) {
25
25
shouldActivate = args . email . toLowerCase ( ) === user . email . toLowerCase ( ) ;
26
+ } else if ( ! args . username && ! args . email ) {
27
+ shouldActivate = true ;
26
28
}
27
29
}
28
30
if ( ! shouldActivate ) {
You can’t perform that action at this time.
0 commit comments