mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
accounting fixes + restrict it to admin user only
This commit is contained in:
@ -14,6 +14,9 @@ class ControllerAuditAudit extends Controller {
|
||||
|
||||
$this->load->model('audit/audit');
|
||||
|
||||
if(Registry::get('admin_user') == 0) {
|
||||
die("go away");
|
||||
}
|
||||
|
||||
$this->render();
|
||||
}
|
||||
|
@ -28,6 +28,10 @@ class ControllerAuditHelper extends Controller {
|
||||
|
||||
$this->load->model('audit/audit');
|
||||
|
||||
if(Registry::get('admin_user') == 0) {
|
||||
die("go away");
|
||||
}
|
||||
|
||||
|
||||
$this->data['page'] = 0;
|
||||
if(isset($this->request->post['page'])) { $this->data['page'] = $this->request->post['page']; }
|
||||
|
Reference in New Issue
Block a user