objectManager: Never show add entry link if the user isn't an admin

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-10-02 00:49:01 +02:00
committed by Chris Morgan
parent 6eccc11979
commit ecbfa84600

View File

@@ -322,7 +322,7 @@ class ObjectManager
}
}
if($this->GetOptionalSetting("objectShowAddEntry", FALSE))
if($this->GetOptionalSetting("objectShowAddEntry", FALSE) && $oObject->canEdit())
{
echo "<br><center><a href=\"".
$this->makeUrl("add", false,