1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 20:51:53 +02:00

Forum shortcodes forums track update

Forums track link changes, so it also doesn't display when a user is not permitted to post on forum...
This commit is contained in:
rica-carv 2016-11-24 20:59:38 +00:00 committed by GitHub
parent 134ef515c8
commit 5ff582b26d

View File

@ -128,7 +128,7 @@ class forum_shortcodes extends e_shortcode
// To be reworked to get the $forum var
$trackPref = $forum->prefs->get('track');
if(!empty($trackPref))
if(!empty($trackPref) && $forum->checkPerm($this->var['forum_id'], 'post'))
{
$uInfo[2] = "<a href='".e107::url('forum','track')."'>".LAN_FORUM_0030."</a>";
}