apps/dav/lib/SystemTag/SystemTagsByIdCollection.php 1 location
|
@@ 75-81 (lines=7) @@
|
| 72 |
|
* |
| 73 |
|
* @return bool true if the user is an admin |
| 74 |
|
*/ |
| 75 |
|
private function isAdmin() { |
| 76 |
|
$user = $this->userSession->getUser(); |
| 77 |
|
if ($user !== null) { |
| 78 |
|
return $this->groupManager->isAdmin($user->getUID()); |
| 79 |
|
} |
| 80 |
|
return false; |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
/** |
| 84 |
|
* @param string $name |
apps/dav/lib/Connector/Sabre/FilesReportPlugin.php 1 location
|
@@ 396-402 (lines=7) @@
|
| 393 |
|
/** |
| 394 |
|
* Returns whether the currently logged in user is an administrator |
| 395 |
|
*/ |
| 396 |
|
private function isAdmin() { |
| 397 |
|
$user = $this->userSession->getUser(); |
| 398 |
|
if ($user !== null) { |
| 399 |
|
return $this->groupManager->isAdmin($user->getUID()); |
| 400 |
|
} |
| 401 |
|
return false; |
| 402 |
|
} |
| 403 |
|
} |
| 404 |
|
|
apps/updatenotification/lib/Notification/Notifier.php 1 location
|
@@ 157-165 (lines=9) @@
|
| 154 |
|
/** |
| 155 |
|
* @return bool |
| 156 |
|
*/ |
| 157 |
|
protected function isAdmin(): bool { |
| 158 |
|
$user = $this->userSession->getUser(); |
| 159 |
|
|
| 160 |
|
if ($user instanceof IUser) { |
| 161 |
|
return $this->groupManager->isAdmin($user->getUID()); |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
return false; |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
protected function getCoreVersions(): string { |
| 168 |
|
return implode('.', Util::getVersion()); |
lib/private/NavigationManager.php 1 location
|
@@ 318-324 (lines=7) @@
|
| 315 |
|
} |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
private function isAdmin() { |
| 319 |
|
$user = $this->userSession->getUser(); |
| 320 |
|
if ($user !== null) { |
| 321 |
|
return $this->groupManager->isAdmin($user->getUID()); |
| 322 |
|
} |
| 323 |
|
return false; |
| 324 |
|
} |
| 325 |
|
|
| 326 |
|
private function isSubadmin() { |
| 327 |
|
$user = $this->userSession->getUser(); |