forked from rDrama/rDrama
master
parent
14742ec344
commit
8aec44b386
|
@ -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…
Reference in New Issue