canView takes a user object, not a string

This commit is contained in:
Isaac Connor 2021-09-08 19:07:51 -04:00
parent 6b095a17aa
commit 12fcae7574
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;
}