Skip to content

Commit

Permalink
Update view_shortcodes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rica-carv authored Jan 31, 2025
1 parent 8bb032e commit e813cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e107_plugins/forum/shortcodes/batch/view_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ function sc_postoptions()
}

// Delete own post, if it is the last in the thread
if($this->thisIsTheLastPost && USER && $this->thread->threadInfo['thread_lastuser'] == USERID)
if($this->thisIsTheLastPost && USER && $this->thread->threadInfo['thread_lastuser'] == USERID && !defset('MODERATOR'))
{
/* only show delete button when post is not the initial post of the topic
* AND if this post is the last post in the thread */
Expand Down

0 comments on commit e813cfe

Please sign in to comment.