2019-07-14 21:58:18 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class ControllerAuditRemoval extends Controller {
|
|
|
|
|
|
|
|
public function index(){
|
|
|
|
|
|
|
|
$this->id = "content";
|
|
|
|
$this->template = "audit/removal.tpl";
|
2019-08-04 08:09:21 +02:00
|
|
|
$this->layout = "common/layout-audit-removal";
|
2019-07-14 21:58:18 +02:00
|
|
|
|
|
|
|
$request = Registry::get('request');
|
|
|
|
$db = Registry::get('db');
|
|
|
|
|
|
|
|
$this->load->model('audit/removal');
|
|
|
|
|
2019-07-16 21:31:48 +02:00
|
|
|
if(Registry::get('admin_user') == 0 && Registry::get('auditor_user') == 0 && Registry::get('data_officer') == 0) {
|
2019-07-14 21:58:18 +02:00
|
|
|
die("go away");
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->data['data'] = $this->model_audit_removal->get_pending_removals();
|
|
|
|
|
|
|
|
$this->render();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|