From 53099a726460cb6b21e8650db1b6ccab9157d294 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 19 Dec 2017 09:33:03 -0700 Subject: [PATCH] * Addressbook - fix adding contact while looking at accounts would try to add a new user --- addressbook/inc/class.addressbook_ui.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 43306b0eac..84f1b843f3 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -2236,7 +2236,9 @@ window.egw_LAB.wait(function() { $content['owner'] = (string)$state['filter']; } $content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p'); - if ($content['owner'] === '' || !($this->grants[$content['owner'] = (string) (int) $content['owner']] & Acl::ADD)) + if ($content['owner'] === '' || !($this->grants[$content['owner'] = (string) (int) $content['owner']] & Acl::ADD) || + $content['owner'] == '0' // Accounts not allowed, can't create users this way + ) { $content['owner'] = $this->default_addressbook; $content['private'] = (int)$this->default_private;