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

@@ 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