Fixing dependence upon hard-coded password by modifying playlist build to not require authentication

This commit is contained in:
Robb Ebright 2017-03-21 15:02:31 -04:00
parent 0ac58165a3
commit 934cad44b5
3 changed files with 11 additions and 37 deletions

View file

@ -76,7 +76,7 @@ class Application_Model_Scheduler
}
/*
* make sure any incoming requests for scheduling are ligit.
* make sure any incoming requests for scheduling are legit.
*
* @param array $items, an array containing pks of cc_schedule items.
*/

View file

@ -230,6 +230,7 @@ SQL;
$id = $this->_showInstance->getDbId();
$scheduler = new Application_Model_Scheduler();
$scheduler->setCheckUserPermissions($checkUserPerm);
$scheduler->scheduleAfter(
array(array("id" => 0, "instance" => $id, "timestamp" => $ts)),
array(array("id" => $pl_id, "type" => "playlist"))