[pLog-svn] r4120 - plog/trunk/class/action/admin
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Wed Oct 11 09:16:59 GMT 2006
Author: oscar
Date: 2006-10-11 09:16:58 +0000 (Wed, 11 Oct 2006)
New Revision: 4120
Modified:
plog/trunk/class/action/admin/adminaction.class.php
Log:
the blog owner and site admins should not be restricted
Modified: plog/trunk/class/action/admin/adminaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaction.class.php 2006-10-10 22:25:25 UTC (rev 4119)
+++ plog/trunk/class/action/admin/adminaction.class.php 2006-10-11 09:16:58 UTC (rev 4120)
@@ -229,7 +229,13 @@
*/
function userHasPermission( $permName )
{
- return( $this->_userInfo->hasPermissionByName( $permName, $this->_blogInfo->getId()));
+ // check for the permission, whether the user is the blog owner or
+ // whether the user is a site administrator
+ return(
+ $this->_userInfo->hasPermissionByName( $permName, $this->_blogInfo->getId()) ||
+ $this->_userInfo->isSiteAdmin() ||
+ $this->_blogInfo->getOwnerId() == $this->_userInfo->getId()
+ );
}
}
?>
\ No newline at end of file
More information about the pLog-svn
mailing list