1
0
Fork 0

Fix bug with ACL and contact network page

- Require user array parameter in ACL::getFullSelectorHTML
- Change all wrong uses where user array was replaced by default
permissions array
This commit is contained in:
Hypolite Petovan 2018-08-15 00:43:27 +02:00
commit ea17370211
4 changed files with 19 additions and 18 deletions

View file

@ -483,7 +483,7 @@ function events_content(App $a) {
$perms = ACL::getDefaultUserPermissions($orig_event);
if ($mode === 'new' || $mode === 'copy') {
$acl = ($cid ? '' : ACL::getFullSelectorHTML(x($orig_event) ? $orig_event : $a->user));
$acl = ($cid ? '' : ACL::getFullSelectorHTML($a->user, false, $orig_event));
}
// If we copy an old event, we need to remove the ID and URI