PHP 5.6 compatibility
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
18968e84fc
commit
173388dcd4
|
@ -194,7 +194,7 @@ class MailPlugin implements ISearchPlugin {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function isCurrentUser(ICloudId $cloud): bool {
|
||||
public function isCurrentUser(ICloudId $cloud) {
|
||||
$currentUser = $this->userSession->getUser();
|
||||
return $currentUser instanceof IUser ? $currentUser->getUID() === $cloud->getUser() : false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue