From 0376f3d48f21c0833966e765ed9e50203f61dd2f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Jun 2007 13:09:57 +0000 Subject: [PATCH] "removed no changable ACL for addressbook, if contacts are in LDAP" --- admin/inc/class.uiaccounts.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/admin/inc/class.uiaccounts.inc.php b/admin/inc/class.uiaccounts.inc.php index 8f1aeffd93..2903917e84 100755 --- a/admin/inc/class.uiaccounts.inc.php +++ b/admin/inc/class.uiaccounts.inc.php @@ -36,16 +36,12 @@ 'addressbook' => True, 'todo' => True, 'calendar' => True, - 'notes' => True, 'projects' => True, - 'phonelog' => True, 'infolog' => True, 'filemanager' => True, 'tts' => True, 'bookmarks' => True, 'img' => True, - 'netsaint' => True, - 'inv' => True, 'phpbrain' => True, 'projectmanager' => True, 'timesheet' => True @@ -61,6 +57,11 @@ { $_POST = $this->array_stripslashes($_POST); } + // remove ACL from addressbook, if contacts-backend is LDAP, as the ACL can not be modified there + if ($GLOBALS['egw_info']['server']['contact_repository'] == 'ldap') + { + unset($this->apps_with_acl['addressbook']); + } } function row_action($action,$type,$account_id)