diff --git a/lib/CurrentUser.php b/lib/CurrentUser.php index 40256121a..7b41c088c 100644 --- a/lib/CurrentUser.php +++ b/lib/CurrentUser.php @@ -60,7 +60,7 @@ public function getUserIdentifier() { public function getUID() { $user = $this->userSession->getUser(); if ($user instanceof IUser) { - return (string)$user->getUID(); + return $user->getUID(); } return null; } @@ -72,7 +72,7 @@ public function getUID() { public function getCloudId() { $user = $this->userSession->getUser(); if ($user instanceof IUser) { - return (string)$user->getCloudId(); + return $user->getCloudId(); } else { return $this->getCloudIDFromToken(); }