mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
auditors can view audit records
This commit is contained in:
@ -14,7 +14,7 @@ class ControllerAuditAudit extends Controller {
|
||||
|
||||
$this->load->model('audit/audit');
|
||||
|
||||
if(Registry::get('admin_user') == 0) {
|
||||
if(Registry::get('admin_user') == 0 && Registry::get('auditor_user') == 0) {
|
||||
die("go away");
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ class ControllerAuditHelper extends Controller {
|
||||
|
||||
$this->load->model('audit/audit');
|
||||
|
||||
if(Registry::get('admin_user') == 0) {
|
||||
if(Registry::get('admin_user') == 0 && Registry::get('auditor_user') == 0) {
|
||||
die("go away");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user