Skip to content

Commit

Permalink
warnings: пока никому не доступно
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcom committed Nov 1, 2024
1 parent f1a9edf commit a2f2f92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,6 @@ class TopicPermissionService(commentService: CommentReadService, siteConfig: Sit

def canPostWarning(currentUserOpt: Option[CurrentUser], topic: Topic, comment: Option[Comment]): Boolean = {
currentUserOpt.exists(user => !topic.deleted && !topic.expired && comment.forall(!_.deleted) &&
user.moderator && !user.user.isFrozen)
user.user.isAdministrator && !user.user.isFrozen)
}
}

0 comments on commit a2f2f92

Please sign in to comment.