Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 5436809f926f68ff60938fac43ff4e94 > files > 26

docmgr-1.0-0.RC10.1mdv2010.1.src.rpm

diff -p -up docmgr/lib/account/db.php.perms~ docmgr/lib/account/db.php
--- docmgr/lib/account/db.php.perms~	2010-04-12 17:42:56.420345816 +0200
+++ docmgr/lib/account/db.php	2010-04-12 17:43:00.783468473 +0200
@@ -89,7 +89,8 @@ class DB {
 		//insert a base permission record for this account
 		$opt = null;
 		$opt["account_id"] = $this->accountId;
-		$opt["bitset"] = "0";
+		$opt["bitset"] = INSERT_OBJECTS;
+		$opt["bitmask"] = PERM::bit_set(PERM::pad(0, PERM_BITLEN), $opt["bitset"]);
 		$opt["enable"] = "t";
 		$this->DB->insert("auth_accountperm",$opt);