Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 368-374 (lines=7) @@
365
	/**
366
	 * Returns whether the currently logged in user is an administrator
367
	 */
368
	private function isAdmin() {
369
		$user = $this->userSession->getUser();
370
		if ($user !== null) {
371
			return $this->groupManager->isAdmin($user->getUID());
372
		}
373
		return false;
374
	}
375
}
376