Skip to content

Commit

Permalink
Fix Bug
Browse files Browse the repository at this point in the history
Get availableTimeoutActions for the user actually locking
instead of getting the timeout actions for the active user.
  • Loading branch information
justindbaur committed Nov 29, 2023
1 parent db4ad01 commit 147ef80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class VaultTimeoutService implements VaultTimeoutServiceAbstraction {
}

const availableActions = await firstValueFrom(
this.vaultTimeoutSettingsService.availableVaultTimeoutActions$()
this.vaultTimeoutSettingsService.availableVaultTimeoutActions$(userId)
);
const supportsLock = availableActions.includes(VaultTimeoutAction.Lock);
if (!supportsLock) {
Expand Down

0 comments on commit 147ef80

Please sign in to comment.