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");
|
ZM\Error("Empty event passed to exportFileList");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$event->canView('Events')) {
|
if (!$event->canView()) {
|
||||||
ZM\Error('Can\'t view event '.$event->Id());
|
ZM\Error('Can\'t view event '.$event->Id());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue