Added a permissions array to all the controllers that extends FHC_Controller

This commit is contained in:
Paolo
2018-03-21 15:33:39 +01:00
parent 1f2450cf17
commit e8bec1ebf5
17 changed files with 272 additions and 172 deletions
+5 -4
View File
@@ -21,14 +21,15 @@ class MailJob extends FHC_Controller
*/
public function __construct()
{
parent::__construct();
// An empty array as parameter will ensure that this controller is ONLY callable from command line
parent::__construct(array());
// Loads MessageLib
$this->load->library("MessageLib");
}
public function sendMessages($numberToSent = null, $numberPerTimeRange = null, $email_time_range = null, $email_from_system = null)
{
$this->messagelib->sendAll($numberToSent, $numberPerTimeRange, $email_time_range, $email_from_system);
}
}
}