remove not used / wrong prefix from public key

This commit is contained in:
Ralf Becker 2015-05-27 05:11:38 +00:00
parent 01143f4b76
commit be5dd22a48

View File

@ -2488,12 +2488,12 @@ class addressbook_bo extends addressbook_so
if (isset($allow_user_updates) && isset($GLOBALS['egw_info']['user']['apps']['admin']))
{
$update = false;
if ($allow_user_updates && !in_array('contact_pubkey', $this->own_account_acl))
if ($allow_user_updates && !in_array('pubkey', $this->own_account_acl))
{
$this->own_account_acl[] = 'contact_pubkey';
$this->own_account_acl[] = 'pubkey';
$update = true;
}
elseif (!$allow_user_updates && ($key = array_search('contact_pubkey', $this->own_account_acl)) !== false)
elseif (!$allow_user_updates && ($key = array_search('pubkey', $this->own_account_acl)) !== false)
{
unset($this->own_account_acl[$key]);
$update = true;