Revert commit c6b2d84777 which breaks creation of account from admin

This commit is contained in:
Hadi Nategh 2017-12-20 15:20:48 +01:00
parent 06db393f1c
commit a2aadad016

View File

@ -2236,9 +2236,7 @@ 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) ||
$content['owner'] == '0' // Accounts not allowed, can't create users this way
)
if ($content['owner'] === '' || !($this->grants[$content['owner'] = (string) (int) $content['owner']] & Acl::ADD))
{
$content['owner'] = $this->default_addressbook;
$content['private'] = (int)$this->default_private;