canView takes a user object, not a string

This commit is contained in:
Isaac Connor 2021-09-08 19:07:51 -04:00
parent a44bbf8e34
commit e18f8019b0
1 changed files with 1 additions and 1 deletions

View File

@ -776,7 +776,7 @@ function exportFileList(
ZM\Error("Empty event passed to exportFileList");
return;
}
if (!$event->canView('Events')) {
if (!$event->canView()) {
ZM\Error('Can\'t view event '.$event->Id());
return;
}