Code Duplication    Length = 7-7 lines in 3 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

@@ 394-400 (lines=7) @@
391
	/**
392
	 * Returns whether the currently logged in user is an administrator
393
	 */
394
	private function isAdmin() {
395
		$user = $this->userSession->getUser();
396
		if ($user !== null) {
397
			return $this->groupManager->isAdmin($user->getUID());
398
		}
399
		return false;
400
	}
401
}
402

lib/private/NavigationManager.php 1 location

@@ 178-184 (lines=7) @@
175
		}
176
	}
177
178
	private function isAdmin() {
179
		$user = $this->userSession->getUser();
180
		if ($user !== null) {
181
			return $this->groupManager->isAdmin($user->getUID());
182
		}
183
		return false;
184
	}
185
186
}
187