feature: Added "never" expiration date
This commit is contained in:
@@ -33,7 +33,7 @@ export class ShareSecurityGuard implements CanActivate {
|
||||
include: { security: true },
|
||||
});
|
||||
|
||||
if (!share || moment().isAfter(share.expiration))
|
||||
if (!share || (moment().isAfter(share.expiration) && moment(share.expiration).unix() !== 0))
|
||||
throw new NotFoundException("Share not found");
|
||||
|
||||
if (!share.security) return true;
|
||||
|
||||
Reference in New Issue
Block a user