diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-20 17:00:29 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-26 16:58:52 +0100 |
commit | 67da1f7e5ac9fc5472b6041dcfdc81a4b8428379 (patch) | |
tree | c59843c523ac38af745beadaa0baefec5815d3c0 /lib/private/security | |
parent | 66f0db30b2ba97cbe91031b42740dabddc659f0d (diff) | |
download | nextcloud-server-67da1f7e5ac9fc5472b6041dcfdc81a4b8428379.tar.gz nextcloud-server-67da1f7e5ac9fc5472b6041dcfdc81a4b8428379.zip |
certificate manager only needs the user-id, no need to pass on the complete user object
Diffstat (limited to 'lib/private/security')
-rw-r--r-- | lib/private/security/certificatemanager.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/security/certificatemanager.php b/lib/private/security/certificatemanager.php index 4a8ea170731..0744546177f 100644 --- a/lib/private/security/certificatemanager.php +++ b/lib/private/security/certificatemanager.php @@ -16,15 +16,15 @@ use OCP\ICertificateManager; */ class CertificateManager implements ICertificateManager { /** - * @var \OCP\IUser + * @var string */ - protected $user; + protected $uid; /** - * @param \OCP\IUser $user + * @param string $uid */ - public function __construct($user) { - $this->user = $user; + public function __construct($uid) { + $this->uid = $uid; } /** @@ -134,7 +134,7 @@ class CertificateManager implements ICertificateManager { } private function getPathToCertificates() { - $path = $this->user ? $this->user->getHome() . '/files_external/' : '/files_external/'; + $path = is_null($this->uid) ? '/files_external/' : '/' . $this->uid . '/files_external/'; return $path; } |