added fixme
This commit is contained in:
parent
e3584e764e
commit
dcf150567c
@ -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);
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user