(feat) new 'viewable' property on events/tasks for full viewers

This commit is contained in:
Ludovic Marcotte
2015-08-19 11:22:17 -04:00
parent 161bcfac87
commit dffdbf318c
3 changed files with 31 additions and 12 deletions

View File

@@ -77,11 +77,13 @@
}
function openEvent($event, event) {
openComponent($event, event, 'appointment');
if (event.viewable)
openComponent($event, event, 'appointment');
}
function openTask($event, task) {
openComponent($event, task, 'task');
if (task.viewable)
openComponent($event, task, 'task');
}
function openComponent($event, component, type) {