mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 12:38:36 +00:00
feat: check if secret is expired before checking if secret has password
This commit is contained in:
@@ -80,7 +80,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
|
||||
orgId: req.permission?.orgId
|
||||
});
|
||||
|
||||
// only return secret if it exists and has no password set
|
||||
// return undefined if it does not exist, has password set or has no more views allowed.
|
||||
if (!sharedSecret || sharedSecret.password) return undefined;
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user