mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Closes #3742 - Added perm check for PM icon in Admin Area
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user