From 58024bc6d51fb152687e652517a444e5ab6da26c Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 23 Apr 2015 20:32:09 -0700 Subject: [PATCH] Disable forum-subject edit when not the original thread/topic creator. --- e107_plugins/forum/shortcodes/batch/post_shortcodes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e107_plugins/forum/shortcodes/batch/post_shortcodes.php b/e107_plugins/forum/shortcodes/batch/post_shortcodes.php index a60d40eff..b9a6c78ee 100644 --- a/e107_plugins/forum/shortcodes/batch/post_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/post_shortcodes.php @@ -111,6 +111,10 @@ class plugin_forum_post_shortcodes extends e_shortcode elseif($this->var['action'] == 'edit') { $_POST['subject'] = $this->var['thread_name']; + if($this->var['thread_user'] != USERID) + { + $opts['disabled'] = 1; + } } else {