Fix public link for master key

In public link mode there is no session, so the code should use the
public key instead.
pull/4030/head
Vincent Petry 9 years ago committed by Bjoern Schiessle
parent b79211e4ae
commit 43c081bdc9
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
  1. 2
      apps/encryption/lib/KeyManager.php

@ -405,7 +405,7 @@ class KeyManager {
return '';
}
if ($this->util->isMasterKeyEnabled()) {
if (!is_null($uid) && $this->util->isMasterKeyEnabled()) {
$uid = $this->getMasterKeyId();
}

Loading…
Cancel
Save