From 29b98ef9a68469fc821f14521392008d6fca5902 Mon Sep 17 00:00:00 2001 From: Moc Date: Mon, 27 Dec 2021 21:12:59 +0100 Subject: [PATCH] Closes #3742 - Added perm check for PM icon in Admin Area --- e107_core/shortcodes/batch/admin_shortcodes.php | 7 +++++++ 1 file changed, 7 insertions(+) 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();