From 2563cd7f53904060c795e5fef6b03aceacb4b205 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 14 Nov 2006 09:25:07 +0000 Subject: [PATCH] allow to change the addressbook/owner for new contacts, even if you have no delete rights for the preselected addressbook --- addressbook/inc/class.uicontacts.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index af9695f644..af01e2ca23 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -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)