mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-02-19 01:55:48 -05:00
Revert "fix: jwt guard when unauthenticated shares are allowed"
This reverts commit c2b87aba5c
.
This commit is contained in:
parent
712cfe625a
commit
ffdecbd32e
1 changed files with 3 additions and 4 deletions
|
@ -9,9 +9,8 @@ export class JwtGuard extends AuthGuard("jwt") {
|
||||||
canActivate(
|
canActivate(
|
||||||
context: ExecutionContext
|
context: ExecutionContext
|
||||||
): boolean | Promise<boolean> | Observable<boolean> {
|
): boolean | Promise<boolean> | Observable<boolean> {
|
||||||
return (
|
return process.env.ALLOW_UNAUTHENTICATED_SHARES == "true"
|
||||||
super.canActivate(context) ||
|
? true
|
||||||
process.env.ALLOW_UNAUTHENTICATED_SHARES == "true"
|
: super.canActivate(context);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue