[pLog-svn] r3475 - plog/trunk/class/dao
Jon Daley
plogworld at jon.limedaley.com
Sun May 28 19:00:14 GMT 2006
Lots of good work today, Mark!
Small typo in this change: getBlogId() should not be compared to
getUserId().
On Sun, 28 May 2006, mark at devel.lifetype.net wrote:
> 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;
> }
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>
**************************************
Jon Daley
http://jon.limedaley.com/
Legalism is adding stuff to the cross.
-- C.J. Mahaney
More information about the pLog-svn
mailing list