allow to change the addressbook/owner for new contacts, even if you have no delete rights for the preselected addressbook

This commit is contained in:
Ralf Becker 2006-11-14 09:25:07 +00:00
parent 04afc8f6cb
commit 2563cd7f53

View File

@ -1065,7 +1065,7 @@ class uicontacts extends bocontacts
$GLOBALS['egw']->common->grab_owner_name($content['owner']);
}
$readonlys['owner'] = !$content['owner'] || // dont allow to move accounts, as this mean deleting the user incl. all content he owns
!$this->check_perms(EGW_ACL_DELETE,$content); // you need delete rights to move a contact into an other addressbook
$content['id'] && !$this->check_perms(EGW_ACL_DELETE,$content); // you need delete rights to move an existing contact into an other addressbook
}
// set the unsupported fields from the backend to readonly
foreach($this->get_fields('unsupported',$content['id'],$content['owner']) as $field)