mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$pid = e107::getDb()->retrieve('plugin', 'plugin_id', "plugin_path = 'pm'");
|
||||||
|
|
||||||
|
if(!getperms(0) && !getperms('P', 'P'.$pid))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
Reference in New Issue
Block a user