canView takes a user object, not a string
This commit is contained in:
parent
6b095a17aa
commit
12fcae7574
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue