Try to make a call to AdminModel::checkIn()
in a CLI Application context:
/** @var SchedulerComponent $scheduler */
$scheduler = Factory::getApplication()->bootComponent('com_scheduler');
/** @var TaskModel $taskModel */
$taskModel = $scheduler->getMVCFactory()->createModel('Task', 'Administrator');
$task = $taskModel->getItem($id);
$resolution = $taskModel->checkin($id);
AdminModel::checkIn()
call is successful, because CLI access should be equivalent to a superuser/root access.
AdminModel::checkIn()
call fails due to ACL check in FormModel
line 104.
-
-
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|