forked from rDrama/rDrama
add INFINITE_CURRENCY perm
parent
390bdd0a41
commit
65c69bfd24
|
@ -213,7 +213,7 @@ class User(Base):
|
||||||
user_query.update({ User.marseybux: User.marseybux + amount })
|
user_query.update({ User.marseybux: User.marseybux + amount })
|
||||||
|
|
||||||
def charge_account(self, currency, amount, **kwargs):
|
def charge_account(self, currency, amount, **kwargs):
|
||||||
if self.id == AEVANN_ID:
|
if self.admin_level >= PERMS['INFINITE_CURRENCY']:
|
||||||
return (True, amount)
|
return (True, amount)
|
||||||
|
|
||||||
succeeded = False
|
succeeded = False
|
||||||
|
|
|
@ -392,6 +392,7 @@ PERMS = { # Minimum admin_level to perform action.
|
||||||
'INSERT_TRANSACTION': 4,
|
'INSERT_TRANSACTION': 4,
|
||||||
|
|
||||||
'VIEW_EMAILS': 5,
|
'VIEW_EMAILS': 5,
|
||||||
|
'INFINITE_CURRENCY': 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
FEATURES = {
|
FEATURES = {
|
||||||
|
|
Loading…
Reference in New Issue