Skip to content

Commit

Permalink
Merge pull request zalando#42 from ReneHollander/patch-1
Browse files Browse the repository at this point in the history
Fixes error when the default collection is opened.
  • Loading branch information
mikkeloscar authored Dec 16, 2019
2 parents ac5f1d0 + db665d2 commit f41212d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secret_service/secret_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (s *SecretService) Unlock(collection dbus.ObjectPath) error {
unlocked = append(unlocked, c...)
}

if len(unlocked) != 1 || unlocked[0] != collection {
if len(unlocked) != 1 || (collection != loginCollectionAlias && unlocked[0] != collection) {
return fmt.Errorf("failed to unlock correct collection '%v'", collection)
}

Expand Down

0 comments on commit f41212d

Please sign in to comment.