View Revisions: Issue #1703
[ All Revisions ] [ Back to Issue ]
Summary | 0001703: Task permissions: canAccess not working | ||
---|---|---|---|
Revision | 2016-07-05 12:20 by opto | ||
Description | project worker: access etc for all non admin modules. Then deny access and all else for one task.Use this code to check fotr access, taken from elsewhere in code base: $obj = new CTask(); $obj->load($rowData['task_id']); $canAccess = $obj->canAccess(); The task cannot be loaded, task_name and other fields is NULL - just as it should be. But $canAccess is true fortunately, canView() works workaround: check if ($obj->task_name == NULL) instead if if ($canAccess) |
||
Revision | 2016-07-05 09:43 by opto | ||
Description | project worker: access etc for all non admin modules. Then deny access and all else for one task.Use this code to check fotr access, taken from elsewhere in code base: $obj = new CTask(); $obj->load($rowData['task_id']); $canAccess = $obj->canAccess(); The task cannot be loaded, task_name and other fields is NULL - just as it should be. But $canAccess is true workaround: check if ($obj->task_name == NULL) instead if if ($canAccess) |