Alexander Nicolaysen Sørnes : objectManager: Never show add entry link if the user isn't an admin
Module: appdb Branch: master Commit: ecbfa84600e4306f8f034695230bc14847e0982d URL: http://source.winehq.org/git/appdb.git/?a=commit;h=ecbfa84600e4306f8f0346952... Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Thu Oct 2 00:49:01 2008 +0200 objectManager: Never show add entry link if the user isn't an admin --- include/objectManager.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/objectManager.php b/include/objectManager.php index 088746c..4ddf644 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -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,
participants (1)
-
Chris Morgan