Fix url::canEdit() to not call undefined functions

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-16 22:59:48 +00:00
committed by WineHQ
parent 20ebe74913
commit a309317347
2 changed files with 11 additions and 8 deletions

View File

@@ -903,6 +903,8 @@ class Application {
{
if($_SESSION['current']->hasPriv("admin"))
return TRUE;
else if($this)
return maintainer::isUserSuperMaintainer($_SESSION['current'], $this->iAppId);
else
return FALSE;
}