mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 10:50:25 +02:00
Disable forum-subject edit when not the original thread/topic creator.
This commit is contained in:
@@ -111,6 +111,10 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
elseif($this->var['action'] == 'edit')
|
elseif($this->var['action'] == 'edit')
|
||||||
{
|
{
|
||||||
$_POST['subject'] = $this->var['thread_name'];
|
$_POST['subject'] = $this->var['thread_name'];
|
||||||
|
if($this->var['thread_user'] != USERID)
|
||||||
|
{
|
||||||
|
$opts['disabled'] = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user