forked from rDrama/rDrama
1
0
Fork 0

add INFINITE_CURRENCY perm

master
Aevann 2023-11-04 18:36:44 +02:00
parent 390bdd0a41
commit 65c69bfd24
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -392,6 +392,7 @@ PERMS = { # Minimum admin_level to perform action.
'INSERT_TRANSACTION': 4,
'VIEW_EMAILS': 5,
'INFINITE_CURRENCY': 5,
}
FEATURES = {