"bugfix: removed change-org checkbox in view"

This commit is contained in:
Ralf Becker 2007-06-03 13:21:13 +00:00
parent 9957f21e21
commit b970654f4f

View File

@ -1489,6 +1489,7 @@ class uicontacts extends bocontacts
$readonlys['button[save]'] = $readonlys['button[apply]'] = $readonlys['change_photo'] = true; $readonlys['button[save]'] = $readonlys['button[apply]'] = $readonlys['change_photo'] = true;
$readonlys['button[delete]'] = !$content['owner'] || !$this->check_perms(EGW_ACL_DELETE,$content); $readonlys['button[delete]'] = !$content['owner'] || !$this->check_perms(EGW_ACL_DELETE,$content);
$readonlys['button[edit]'] = !$this->check_perms(EGW_ACL_EDIT,$content); $readonlys['button[edit]'] = !$this->check_perms(EGW_ACL_EDIT,$content);
$content['disable_change_org'] = true;
// ToDo: fix vCard export // ToDo: fix vCard export
$readonlys['button[vcard]'] = true; $readonlys['button[vcard]'] = true;
@ -1543,7 +1544,7 @@ $readonlys['button[vcard]'] = true;
$GLOBALS['egw_info']['flags']['currentid'] = $content['id']; $GLOBALS['egw_info']['flags']['currentid'] = $content['id'];
$this->tmpl->exec('addressbook.uicontacts.view',$content,$sel_options,$readonlys,array('id' => $content['id'])); $this->tmpl->exec('addressbook.uicontacts.view',$content,$sel_options,$readonlys,array('id' => $content['id']));
$GLOBALS['egw']->hooks->process(array( $GLOBALS['egw']->hooks->process(array(
'location' => 'addressbook_view', 'location' => 'addressbook_view',
'ab_id' => $content['id'] 'ab_id' => $content['id']