diff --git a/files/helpers/const.py b/files/helpers/const.py index 377350d63..ec0d960cc 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -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) diff --git a/files/routes/awards.py b/files/routes/awards.py index f101a5f63..de0e2e872 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -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)