fd
This commit is contained in:
parent
4367daf813
commit
a5592241c1
2 changed files with 3 additions and 3 deletions
|
@ -160,7 +160,7 @@ class User(Base, Stndrd, Age_times):
|
|||
|
||||
@property
|
||||
def paid_dues(self):
|
||||
return not self.club_banned and (self.admin_level == 6 or self.club_allowed or self.truecoins > int(environ.get("DUES").strip()))
|
||||
return self.admin_level == 6 or self.club_allowed or self.truecoins > int(environ.get("DUES").strip())
|
||||
|
||||
def any_block_exists(self, other):
|
||||
|
||||
|
|
|
@ -328,7 +328,7 @@
|
|||
<input type="submit" class="btn btn-danger" value="Remove User's Content">
|
||||
</form>
|
||||
|
||||
{% if not u.club_allowed %}
|
||||
{% if not v.paid_dues %}
|
||||
<button class="btn btn-success" onclick="post_toast('/@{{u.username}}/club_ban')">Grant club access</button>
|
||||
{% endif %}
|
||||
{% if not u.club_banned %}
|
||||
|
@ -514,7 +514,7 @@
|
|||
|
||||
{% if v.admin_level > 1 %}
|
||||
|
||||
{% if not u.club_allowed %}
|
||||
{% if not v.paid_dues %}
|
||||
<button class="btn btn-success" onclick="post_toast('/@{{u.username}}/club_ban')">Grant club access</button>
|
||||
{% endif %}
|
||||
{% if not u.club_banned %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue