Added data officer role

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2019-07-14 21:58:18 +02:00
parent 0c830b1276
commit ea3b0c372b
23 changed files with 163 additions and 18 deletions

View File

@ -0,0 +1,26 @@
<?php
class ControllerAuditRemoval extends Controller {
public function index(){
$this->id = "content";
$this->template = "audit/removal.tpl";
$this->layout = "common/layout-audit";
$request = Registry::get('request');
$db = Registry::get('db');
$this->load->model('audit/removal');
if(Registry::get('admin_user') == 0 && Registry::get('auditor_user') == 0) {
die("go away");
}
$this->data['data'] = $this->model_audit_removal->get_pending_removals();
$this->render();
}
}