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:
parent
1283b99c6f
commit
ea17370211
4 changed files with 19 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue