Beautified the code

This commit is contained in:
Michael 2018-09-04 21:24:30 +00:00
parent 821429fdf1
commit 635c8d7450

View file

@ -482,8 +482,8 @@ function events_content(App $a) {
$perms = ACL::getDefaultUserPermissions($orig_event);
if ($mode === 'new' || $mode === 'copy') {
$acl = ($cid ? '' : ACL::getFullSelectorHTML($a->user, false, $orig_event));
if (!$cid && in_array($mode, ['new', 'copy'])) {
$acl = ACL::getFullSelectorHTML($a->user, false, $orig_event);
} else {
$acl = '';
}