diff --git a/files/classes/user.py b/files/classes/user.py index 7f0c0639c..943b4fa1a 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -213,7 +213,7 @@ class User(Base): user_query.update({ User.marseybux: User.marseybux + amount }) def charge_account(self, currency, amount, **kwargs): - if self.id == AEVANN_ID: + if self.admin_level >= PERMS['INFINITE_CURRENCY']: return (True, amount) succeeded = False diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 86d3e710c..8d805bc4d 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -392,6 +392,7 @@ PERMS = { # Minimum admin_level to perform action. 'INSERT_TRANSACTION': 4, 'VIEW_EMAILS': 5, + 'INFINITE_CURRENCY': 5, } FEATURES = {