mirror of
https://github.com/e107inc/e107.git
synced 2025-07-23 16:01:39 +02:00
fix for access / check for access to forum type in forum post
fix #4658
This commit is contained in:
@@ -453,7 +453,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
||||
function sc_postthreadas()
|
||||
{
|
||||
// Show when creating new topic or when editing the original starting post (make sure post is not a reply)
|
||||
if (deftrue('MODERATOR') && $this->var['action'] == "nt" || varset($this->var['thread_datestamp']) == $this->var['post_datestamp'])
|
||||
if (deftrue('MODERATOR') && ($this->var['action'] == "nt" || varset($this->var['thread_datestamp']) == $this->var['post_datestamp']))
|
||||
{
|
||||
$thread_sticky = (isset($_POST['threadtype']) ? $_POST['threadtype'] : vartrue($this->var['thread_sticky'], 0)); // no reference of 'head' $threadInfo['head']['thread_sticky']
|
||||
|
||||
|
Reference in New Issue
Block a user