[pLog-svn] r4356 - plog/trunk/class/template/menu
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Mon Nov 27 21:50:48 GMT 2006
Author: oscar
Date: 2006-11-27 21:50:47 +0000 (Mon, 27 Nov 2006)
New Revision: 4356
Modified:
plog/trunk/class/template/menu/menurenderer.class.php
Log:
forgot one file from the previous commit
Modified: plog/trunk/class/template/menu/menurenderer.class.php
===================================================================
--- plog/trunk/class/template/menu/menurenderer.class.php 2006-11-27 21:48:36 UTC (rev 4355)
+++ plog/trunk/class/template/menu/menurenderer.class.php 2006-11-27 21:50:47 UTC (rev 4356)
@@ -124,6 +124,10 @@
if( $this->_userInfo->getId() == $this->_blogInfo->getOwnerId())
return true;
}
+ // if the user has the 'admin mode' permission, then he can see too
+ if( $this->_userInfo->hasPermissionByName( "edit_blog_admin_mode", 0 )) {
+ return( true );
+ }
// get the AND permissions for the node but if there are no permissions assigned, then we can see
$nodeAndPerms = $node->getAttribute("andPerms");
More information about the pLog-svn
mailing list