[pLog-svn] r3475 - plog/trunk/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Sun May 28 13:49:20 GMT 2006
Author: mark
Date: 2006-05-28 13:49:19 +0000 (Sun, 28 May 2006)
New Revision: 3475
Modified:
plog/trunk/class/dao/userpermissions.class.php
Log:
Since the argument changed to $perm. We should change the if statement, too.
Modified: plog/trunk/class/dao/userpermissions.class.php
===================================================================
--- plog/trunk/class/dao/userpermissions.class.php 2006-05-28 13:48:43 UTC (rev 3474)
+++ plog/trunk/class/dao/userpermissions.class.php 2006-05-28 13:49:19 UTC (rev 3475)
@@ -75,11 +75,11 @@
function grantPermission( &$perm )
{
// check if the permission has already been granted
- $userPerms = $this->getUserPermissions( $perm->getUserId(), $perm->getBlogId());
+ $userPerms = $this->getUserPermissions( $perm->getUserId(), $perm->getUserId());
$found = false;
- foreach( $userPerms as $perm ) {
- if( $perm->getUserId() == $userId && $perm->getBlogId() == $blogId &&
- $perm->getPermissionId() == $permissionId()) {
+ foreach( $userPerms as $userPerm ) {
+ if( $userPerm->getUserId() == $perm->getUserId() && $userPerm->getBlogId() == $perm->getUserId() &&
+ $userPerm->getPermissionId() == $perm->getPermissionId()) {
$found = true;
break;
}
More information about the pLog-svn
mailing list