Add permissions - #1748

This commit is contained in:
enriquecd 2018-02-01 17:49:37 +01:00
parent e1669ded9d
commit 88fddf3032
1 changed files with 10 additions and 1 deletions

View File

@ -15,7 +15,16 @@
// GNU General Public License for more details.
global $config;
check_login ();
check_login();
if (! check_acl ($config['id_user'], 0, "AR") && ! check_acl ($config['id_user'], 0, "AW")) {
db_pandora_audit("ACL Violation",
"Trying to access Inventory");
require ("general/noaccess.php");
return;
}
ui_require_css_file ('firts_task');
?>
<?php