posts: fixup bug in 24216379b

This commit is contained in:
evazion
2022-10-05 02:50:31 -05:00
parent 6a4a4da1bc
commit 56395f8c71

View File

@@ -1576,7 +1576,7 @@ class Post < ApplicationRecord
def levelblocked?(user = CurrentUser.user)
#!user.is_gold? && RESTRICTED_TAGS.any? { |tag| has_tag?(tag) }
!user.is_approver? && tag_string.match?(RESTRICTED_TAGS_REGEX)
!user.is_gold? && tag_string.match?(RESTRICTED_TAGS_REGEX)
end
def banblocked?(user = CurrentUser.user)