From da9c48080e5786c5a59b1f4e18b2bc249aed1159 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 17 Sep 2021 16:07:05 +0200 Subject: [PATCH 1/2] fd --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index a83633b4c8..1adee69b3a 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -256,7 +256,7 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing): g.db.add(self.comment_aux) def realbody(self, v): - if self.post and self.post.club and not (v and v.coins > 150): return "

COUNTRY CLUB ONLY

" + if self.post and self.post.club and not (v and v.paid_dues): return "

COUNTRY CLUB ONLY

" body = self.comment_aux.body_html if not v or v.slurreplacer: From 176524785f0d7b56b0fb6f151a59b035ae91ee5d Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 17 Sep 2021 16:07:08 +0200 Subject: [PATCH 2/2] fd --- files/classes/submission.py | 4 ++-- files/routes/comments.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/classes/submission.py b/files/classes/submission.py index c2b229dd59..7574653efc 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -333,7 +333,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing): g.db.add(self.submission_aux) def realbody(self, v): - if self.club and not (v and v.coins > 150): return "COUNTRY CLUB ONLY" + if self.club and not (v and v.paid_dues): return "COUNTRY CLUB ONLY" body = self.submission_aux.body_html if not v or v.slurreplacer: @@ -354,7 +354,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing): g.db.add(self.submission_aux) def realtitle(self, v): - if self.club and not (v and v.coins > 150) and not (v and v.admin_level == 6): return 'COUNTRY CLUB MEMBERS ONLY' + if self.club and not (v and v.paid_dues) and not (v and v.admin_level == 6): return 'COUNTRY CLUB MEMBERS ONLY' elif self.title_html: title = self.title_html else: title = self.title diff --git a/files/routes/comments.py b/files/routes/comments.py index c5fd329a2c..0ce640bda0 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -140,7 +140,7 @@ def api_comment(v): parent_id = parent_fullname.split("_")[1] if parent_fullname.startswith("t2"): parent_post = get_post(parent_id, v=v) - if parent_post.club and not (v and v.coins > 150): abort(403) + if parent_post.club and not (v and v.paid_dues): abort(403) parent = parent_post parent_comment_id = None level = 1