Added check_login to plugin registration

This commit is contained in:
fbsanchez 2018-05-28 11:31:09 +02:00
parent 2e4b320861
commit 2f8cdb5ea5
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@
function pluginreg_extension_main () { function pluginreg_extension_main () {
global $config; global $config;
check_login();
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) { if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
db_pandora_audit("ACL Violation", "Trying to access Setup Management"); db_pandora_audit("ACL Violation", "Trying to access Setup Management");
require ("general/noaccess.php"); require ("general/noaccess.php");