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:
parent
134ef515c8
commit
5ff582b26d
@ -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>";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user