remotes/1693045480750635534/spooky-22
Aevann1 2022-04-03 18:08:54 +02:00
parent 6647457a4b
commit 8baefa2572
2 changed files with 4 additions and 1 deletions

View File

@ -567,7 +567,7 @@ if SITE_NAME == 'PCM':
AWARDS2 = deepcopy(AWARDS)
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)

View File

@ -47,6 +47,9 @@ def buy(v, award):
if award == 'benefactor' and not request.values.get("mb"):
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)
if award not in AWARDS: abort(400)