cvs: pearweb /sql addacls.php

From: Date: Sat, 22 Dec 2001 02:38:44 +0000
Subject: cvs: pearweb /sql addacls.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1653@lists.php.net to get a copy of this message
ssb Fri Dec 21 21:38:44 2001 EDT Modified files: /pearweb/sql addacls.php Log: * don't hardcode user type Index: pearweb/sql/addacls.php diff -u pearweb/sql/addacls.php:1.4 pearweb/sql/addacls.php:1.5 --- pearweb/sql/addacls.php:1.4 Thu Dec 6 23:46:23 2001 +++ pearweb/sql/addacls.php Fri Dec 21 21:38:44 2001 @@ -72,7 +72,8 @@ $ent = 0; foreach ($acl_paths as $path => $acldata) { foreach ($acldata as $user => $foo) { - $dbh->execute($sth, array($user, 'user', $path, 1)); + $type = isset($group_comment[$user]) ? 'group' : 'user'; + $dbh->execute($sth, array($user, $type, $path, 1)); $ent++; } }

« previous php.pear.cvs (#1653) next »