[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.acl.inc.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.acl.inc.php |
Date: |
Sun, 19 Mar 2006 18:44:56 +0000 |
CVSROOT: /sources/phpgwapi
Module name: phpgwapi
Branch:
Changes by: Sigurd Nes <address@hidden> 06/03/19 18:44:56
Modified files:
inc : class.acl.inc.php
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/phpgwapi/inc/class.acl.inc.php.diff?tr1=1.71&tr2=1.72&r1=text&r2=text
Patches:
Index: phpgwapi/inc/class.acl.inc.php
diff -u phpgwapi/inc/class.acl.inc.php:1.71 phpgwapi/inc/class.acl.inc.php:1.72
--- phpgwapi/inc/class.acl.inc.php:1.71 Mon Mar 13 13:44:47 2006
+++ phpgwapi/inc/class.acl.inc.php Sun Mar 19 18:44:56 2006
@@ -6,7 +6,7 @@
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General
Public License
* @package phpgwapi
* @subpackage accounts
- * @version $Id: class.acl.inc.php,v 1.71 2006/03/13 13:44:47 sigurdne
Exp $
+ * @version $Id: class.acl.inc.php,v 1.72 2006/03/19 18:44:56 sigurdne
Exp $
*/
/**
@@ -595,7 +595,6 @@
*/
function add_repository($app, $location, $account_id, $rights)
{
-
$this->delete_repository($app, $location, $account_id);
$inherit_location[] = $location; // in case the
location is not found in the location table
@@ -610,8 +609,8 @@
foreach($inherit_location as $acl_location)
{
$sql = 'insert into phpgw_acl (acl_appname,
acl_location, acl_account, acl_rights,acl_grantor,acl_type)';
- $sql .= " values ('" . $app . "','" .
$acl_location . "','" . $account_id . "','" . $rights . "', NULL ,'0')";
- $this->db->query($sql ,__LINE__,__FILE__);
+ $sql .= " values ('" . $app . "','" .
$acl_location . "','" . $account_id . "','" . intval($rights) . "', NULL ,'0')";
+ $this->db->query($sql ,__LINE__,__FILE__);
}
return True;
}