removed no changable ACL for addressbook, if contacts are in LDAP

This commit is contained in:
Ralf Becker 2007-06-11 13:11:05 +00:00
parent e96e79d0c1
commit dfcce2e0a3

View File

@ -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)