mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fixing no grant required for inviting contacts
This commit is contained in:
parent
cb902a3219
commit
9f6a7e3187
@ -1654,7 +1654,7 @@ class Contacts extends Contacts\Storage
|
|||||||
$data[] = array(
|
$data[] = array(
|
||||||
'res_id' => $id,
|
'res_id' => $id,
|
||||||
'email' => $contact['email'] ? $contact['email'] : $contact['email_home'],
|
'email' => $contact['email'] ? $contact['email'] : $contact['email_home'],
|
||||||
'rights' => Acl::CUSTOM1,
|
'rights' => Acl::CUSTOM1|Acl::CUSTOM3, // calendar_bo::ACL_READ_FOR_PARTICIPANTS|ACL_INVITE
|
||||||
'name' => $this->link_title($contact),
|
'name' => $this->link_title($contact),
|
||||||
'cn' => trim($contact['n_given'].' '.$contact['n_family']),
|
'cn' => trim($contact['n_given'].' '.$contact['n_family']),
|
||||||
);
|
);
|
||||||
|
@ -512,10 +512,6 @@ class calendar_boupdate extends calendar_bo
|
|||||||
// Resource specific ACL check
|
// Resource specific ACL check
|
||||||
return call_user_func($this->resources[$uid[0]]['check_invite'], $uid);
|
return call_user_func($this->resources[$uid[0]]['check_invite'], $uid);
|
||||||
}
|
}
|
||||||
elseif (!is_numeric($uid)) // contact, no grant required
|
|
||||||
{
|
|
||||||
$ret = true;
|
|
||||||
}
|
|
||||||
elseif (!$this->require_acl_invite)
|
elseif (!$this->require_acl_invite)
|
||||||
{
|
{
|
||||||
$ret = true; // no grant required
|
$ret = true; // no grant required
|
||||||
|
Loading…
Reference in New Issue
Block a user