From c72591f4a26429301528565ea6bdacd1c6c09b54 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 24 Mar 2014 13:23:03 +0000 Subject: [PATCH] fixed new contacts had accounts addressbook selected, if user has admin rights --- addressbook/inc/class.addressbook_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 6d5588c2b1..51ca74ebca 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1912,7 +1912,7 @@ window.egw_LAB.wait(function() { $content['owner'] = $state['filter']; } $content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p'); - if (!($this->grants[$content['owner'] = (string) (int) $content['owner']] & EGW_ACL_ADD)) + if ($content['owner'] === '' || !($this->grants[$content['owner'] = (string) (int) $content['owner']] & EGW_ACL_ADD)) { $content['owner'] = $this->default_addressbook; $content['private'] = (int)$this->default_private;