mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
added retention rules to piler core
This commit is contained in:
@ -21,16 +21,16 @@ class ControllerPolicyArchiving extends Controller {
|
||||
|
||||
$this->data['rules'] = array();
|
||||
|
||||
if(Registry::get('admin_user') == 0) {
|
||||
die("go away");
|
||||
}
|
||||
|
||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
$rc = $this->model_policy_archiving->add_new_rule($this->request->post);
|
||||
|
||||
}
|
||||
|
||||
$this->data['rules'] = $this->model_policy_archiving->get_rules();
|
||||
|
||||
//print_r($this->data['rules']);
|
||||
|
||||
|
||||
$this->render();
|
||||
}
|
||||
|
Reference in New Issue
Block a user