forked from rDrama/rDrama
fsd
parent
6647457a4b
commit
8baefa2572
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue