Skip to content

Commit

Permalink
Respect coreBOS permission system in calendar view, fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke1982 committed Mar 19, 2018
1 parent e1c25b8 commit 4d6501f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/Schedular/ajax.php
Expand Up @@ -81,7 +81,9 @@ function getFieldLabelFromColumnName($column_name) {
$prepared_event['eventStatus'] = $event['schedular_eventstatus'];
$prepared_event['location'] = $event['schedular_location'];
$prepared_event['existingRelations'] = getRelatedRecords($event['crmid']);
$events[] = $prepared_event;

if (isPermitted('Schedular', 'DetailView', $event['crmid']) == 'yes')
$events[] = $prepared_event;
}
echo json_encode($events);
}
Expand Down

0 comments on commit 4d6501f

Please sign in to comment.