fsd
This commit is contained in:
parent
ea2445baf3
commit
f0ef064d08
2 changed files with 4 additions and 1 deletions
|
@ -567,7 +567,7 @@ if SITE_NAME == 'PCM':
|
||||||
|
|
||||||
AWARDS2 = deepcopy(AWARDS)
|
AWARDS2 = deepcopy(AWARDS)
|
||||||
for k, val in AWARDS.items():
|
for k, val in AWARDS.items():
|
||||||
if val['description'] == '???': AWARDS2.pop(k)
|
if val['description'] == '???' and not (k == 'ghost' and SITE_NAME == 'PCM'): AWARDS2.pop(k)
|
||||||
if SITE == 'pcmemes.net' and k in ('ban','pizzashill','marsey','bird','grass','chud'): AWARDS2.pop(k)
|
if SITE == 'pcmemes.net' and k in ('ban','pizzashill','marsey','bird','grass','chud'): AWARDS2.pop(k)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,9 @@ def buy(v, award):
|
||||||
if award == 'benefactor' and not request.values.get("mb"):
|
if award == 'benefactor' and not request.values.get("mb"):
|
||||||
return {"error": "You can only buy the Benefactor award with marseybux."}, 403
|
return {"error": "You can only buy the Benefactor award with marseybux."}, 403
|
||||||
|
|
||||||
|
if award == 'ghost' and v.admin_level < 2:
|
||||||
|
return {"error": "Only admins can buy that award."}, 403
|
||||||
|
|
||||||
AWARDS = deepcopy(AWARDS2)
|
AWARDS = deepcopy(AWARDS2)
|
||||||
|
|
||||||
if award not in AWARDS: abort(400)
|
if award not in AWARDS: abort(400)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue