From: hickert Date: Tue, 8 Aug 2006 08:23:00 +0000 (+0000) Subject: several acl fixes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a8d3821c55cd8d3353c52569b88aa83447371238;p=gosa.git several acl fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4424 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc index fc53581a7..558126b66 100644 --- a/plugins/personal/connectivity/class_oxchangeAccount.inc +++ b/plugins/personal/connectivity/class_oxchangeAccount.inc @@ -872,8 +872,8 @@ class oxchangeAccount extends plugin $q=sprintf($os,$uid,$calendarid[0],$contactsid[0],$tasksid[0]); @pg_exec($pgcon,$q); $q=sprintf($ugr,$uid); - qpg_exec($pgcon,$q); - pg_close($pgcon); + @pg_exec($pgcon,$q); + @pg_close($pgcon); } } diff --git a/plugins/personal/connectivity/class_phpgwAccount.inc b/plugins/personal/connectivity/class_phpgwAccount.inc index 0080bbbc9..165a1beb4 100644 --- a/plugins/personal/connectivity/class_phpgwAccount.inc +++ b/plugins/personal/connectivity/class_phpgwAccount.inc @@ -34,7 +34,6 @@ class phpgwAccount extends plugin /* Load attributes */ foreach($this->attributes as $val){ $smarty->assign("$val", $this->$val); - $smarty->assign($val."ACL", chkacl($this->acl, "$val")); } if ($this->is_account){ $smarty->assign("phpgwState", "checked"); diff --git a/plugins/personal/connectivity/class_pptpAccount.inc b/plugins/personal/connectivity/class_pptpAccount.inc index 2330728c1..02a466f9e 100644 --- a/plugins/personal/connectivity/class_pptpAccount.inc +++ b/plugins/personal/connectivity/class_pptpAccount.inc @@ -120,7 +120,7 @@ class pptpAccount extends plugin /* Save to LDAP */ function save() { - if(chkacl($this->acl, 'gosapptp') == ""){ + if($this->acl_is_createable()){ plugin::save(); /* Write back to ldap */ diff --git a/plugins/personal/connectivity/class_webdavAccount.inc b/plugins/personal/connectivity/class_webdavAccount.inc index 58acf40cb..6a33d4a38 100644 --- a/plugins/personal/connectivity/class_webdavAccount.inc +++ b/plugins/personal/connectivity/class_webdavAccount.inc @@ -50,7 +50,7 @@ class webdavAccount extends plugin function remove_from_parent() { - if(chkacl($this->acl,"webdavAccount")==""){ + if($this->acl_is_createable() || $this->is_account){ /* Cancel if there's nothing to do here */ if (!$this->initially_was_account){ return; @@ -103,7 +103,7 @@ class webdavAccount extends plugin /* Save to LDAP */ function save() { - if(chkacl($this->acl,"webdavAccount")==""){ + if($this->acl_is_createable()){ plugin::save(); /* Write back to ldap */