mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Added check_login to plugin registration
This commit is contained in:
parent
2e4b320861
commit
2f8cdb5ea5
@ -16,6 +16,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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user