mirror of
https://github.com/e107inc/e107.git
synced 2025-07-27 01:40:22 +02:00
Merge pull request #4717 from Jimmi08/patch-16
Fixes #4658 access / check for access to forum type in forum post
This commit is contained in:
@@ -453,7 +453,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
function sc_postthreadas()
|
function sc_postthreadas()
|
||||||
{
|
{
|
||||||
// Show when creating new topic or when editing the original starting post (make sure post is not a reply)
|
// 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']
|
$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