Commit 2115de68 authored by nicola85's avatar nicola85

Fix permission name

parent e85ce562
......@@ -566,7 +566,7 @@ function bat_api_services_events_index($target_ids, $target_types, $target_entit
$end_date_object = new DateTime($end_date);
$today = new DateTime();
if (!user_access('view past availability information') && $today > $start_date_object) {
if (!user_access('view past event information') && $today > $start_date_object) {
if ($today > $end_date_object) {
$return->events = array();
return $return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment