mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 11:21:42 +02:00
* Addressbook - fix adding contact while looking at accounts would try to add a new user
This commit is contained in:
parent
e491f4112a
commit
c6b2d84777
@ -2236,7 +2236,9 @@ window.egw_LAB.wait(function() {
|
|||||||
$content['owner'] = (string)$state['filter'];
|
$content['owner'] = (string)$state['filter'];
|
||||||
}
|
}
|
||||||
$content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p');
|
$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['owner'] = $this->default_addressbook;
|
||||||
$content['private'] = (int)$this->default_private;
|
$content['private'] = (int)$this->default_private;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user