added fixme

This commit is contained in:
kremsy 2014-04-29 20:54:50 +02:00 committed by Steffen Schröder
parent e3584e764e
commit dcf150567c
2 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,7 @@ class AdminLists implements ManialinkPageAnswerListener, CallbackListener {
$rightLabel->setX($x + 13.9);
$rightLabel->setTextSize(0.8);
$rightLabel->setZ(10);
//FIXME, getAuthLevelAbbrev fails
$rightLabel->setText($this->maniaControl->authenticationManager->getAuthLevelAbbreviation($admin));
$description = $this->maniaControl->authenticationManager->getAuthLevelName($admin) . " " . $admin->nickname;
$rightLabel->addTooltipLabelFeature($descriptionLabel, $description);

View File

@ -234,6 +234,7 @@ class AuthenticationManager implements CallbackListener {
* @return string
*/
public static function getAuthLevelName($authLevelInt) {
//FIXME somehow it fails here (look also AdminList.php)
if ($authLevelInt instanceof Player) {
$authLevelInt = $authLevelInt->authLevel;
} else {