apps/dav/lib/Connector/Sabre/FilesReportPlugin.php 1 location
|
@@ 390-396 (lines=7) @@
|
| 387 |
|
/** |
| 388 |
|
* Returns whether the currently logged in user is an administrator |
| 389 |
|
*/ |
| 390 |
|
private function isAdmin() { |
| 391 |
|
$user = $this->userSession->getUser(); |
| 392 |
|
if ($user !== null) { |
| 393 |
|
return $this->groupManager->isAdmin($user->getUID()); |
| 394 |
|
} |
| 395 |
|
return false; |
| 396 |
|
} |
| 397 |
|
} |
| 398 |
|
|
apps/dav/lib/SystemTag/SystemTagsByIdCollection.php 1 location
|
@@ 74-80 (lines=7) @@
|
| 71 |
|
* |
| 72 |
|
* @return bool true if the user is an admin |
| 73 |
|
*/ |
| 74 |
|
private function isAdmin() { |
| 75 |
|
$user = $this->userSession->getUser(); |
| 76 |
|
if ($user !== null) { |
| 77 |
|
return $this->groupManager->isAdmin($user->getUID()); |
| 78 |
|
} |
| 79 |
|
return false; |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* @param string $name |
lib/private/NavigationManager.php 1 location
|
@@ 183-189 (lines=7) @@
|
| 180 |
|
} |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
private function isAdmin() { |
| 184 |
|
$user = $this->userSession->getUser(); |
| 185 |
|
if ($user !== null) { |
| 186 |
|
return $this->groupManager->isAdmin($user->getUID()); |
| 187 |
|
} |
| 188 |
|
return false; |
| 189 |
|
} |
| 190 |
|
|
| 191 |
|
private function isSubAdmin() { |
| 192 |
|
$user = $this->userSession->getUser(); |