mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 14:11:29 +01:00
fixed new contacts had accounts addressbook selected, if user has admin rights
This commit is contained in:
parent
dba03454fb
commit
c72591f4a2
@ -1912,7 +1912,7 @@ window.egw_LAB.wait(function() {
|
|||||||
$content['owner'] = $state['filter'];
|
$content['owner'] = $state['filter'];
|
||||||
}
|
}
|
||||||
$content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p');
|
$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['owner'] = $this->default_addressbook;
|
||||||
$content['private'] = (int)$this->default_private;
|
$content['private'] = (int)$this->default_private;
|
||||||
|
Loading…
Reference in New Issue
Block a user