Commit 88319b62 authored by Guinness's avatar Guinness

If not connected, do not allow access to the piplome

parent 49b64116
...@@ -22,6 +22,9 @@ class Cron extends Controller ...@@ -22,6 +22,9 @@ class Cron extends Controller
{ {
// This method is used to generate a piplome. It might be called with an // This method is used to generate a piplome. It might be called with an
// id parameters, in which case we will ask to regenerate a specific piplome. // id parameters, in which case we will ask to regenerate a specific piplome.
if (!$f3->exists('SESSION.user')) {
$f3->reroute('/login');
}
$logger = new \Log("/piplome.log"); $logger = new \Log("/piplome.log");
$ids = array(); $ids = array();
$db = $f3->get('DB'); $db = $f3->get('DB');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment