No Code Attached Yet bug
avatar ditsuke
ditsuke
23 Nov 2021

Steps to reproduce the issue

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);

Expected result

AdminModel::checkIn() call is successful, because CLI access should be equivalent to a superuser/root access.

Actual result

AdminModel::checkIn() call fails due to ACL check in FormModel line 104.

image

System information (as much as possible)

-

Additional comments

-

avatar ditsuke ditsuke - open - 23 Nov 2021
avatar joomla-cms-bot joomla-cms-bot - change - 23 Nov 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Nov 2021
avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment