summaryrefslogtreecommitdiff
path: root/src/application/views/view_topic_start.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/views/view_topic_start.php')
-rw-r--r--src/application/views/view_topic_start.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application/views/view_topic_start.php b/src/application/views/view_topic_start.php
index cc04ca9..d23d0f4 100644
--- a/src/application/views/view_topic_start.php
+++ b/src/application/views/view_topic_start.php
@@ -2,7 +2,7 @@
use mystic\forum\orm\UserPermissions;
use mystic\forum\utils\RequestUtils;
-$canReply = $GLOBALS["currentUser"]?->hasPermission(UserPermissions::CREATE_OWN_POST) ?? false;
+$canReply = !$topic->isLocked && ($GLOBALS["currentUser"]?->hasPermission(UserPermissions::CREATE_OWN_POST) ?? false);
$canEdit = ($GLOBALS["currentUser"]?->id === $topicAuthor->id && $topicAuthor->hasPermission(UserPermissions::EDIT_OWN_TOPIC))
|| ($GLOBALS["currentUser"]?->hasPermission(UserPermissions::EDIT_OTHER_TOPIC));