From 12dce1e9f8a22f0fd094277114a36b4a1a9a52cd Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Mon, 21 Aug 2023 19:54:11 +0200 Subject: [PATCH] Make unlock work, even when disablepinrequirement is active --- agent/actions/actions.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/agent/actions/actions.go b/agent/actions/actions.go index 132d5ae..1d9e83c 100644 --- a/agent/actions/actions.go +++ b/agent/actions/actions.go @@ -69,10 +69,6 @@ func sync(ctx context.Context, vault *vault.Vault, cfg *config.Config) bool { func ensureIsNotLocked(action Action) Action { return func(request ipc.IPCMessage, cfg *config.Config, vault *vault.Vault, ctx sockets.CallingContext) (interface{}, error) { - if cfg.ConfigFile.RuntimeConfig.DisablePinRequirement { - return action(request, cfg, vault, ctx) - } - if cfg.IsLocked() { err := cfg.TryUnlock(vault) ctx1 := context.Background()