diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index fb9f74565..61a38e1d5 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -877,6 +877,13 @@ class admin_shortcodes extends e_shortcode { return; } + + $pid = e107::getDb()->retrieve('plugin', 'plugin_id', "plugin_path = 'pm'"); + + if(!getperms(0) && !getperms('P', 'P'.$pid)) + { + return; + } $sql = e107::getDb(); $tp = e107::getParser();