账户过期bug
This commit is contained in:
parent
d6a671bdba
commit
067bccf1e9
|
@ -25,7 +25,7 @@
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
},
|
},
|
||||||
"useCompilerModule": true,
|
"useCompilerModule": false,
|
||||||
"userConfirmedUseCompilerModuleSwitch": false,
|
"userConfirmedUseCompilerModuleSwitch": false,
|
||||||
"compileHotReLoad": false,
|
"compileHotReLoad": false,
|
||||||
"useMultiFrameRuntime": false,
|
"useMultiFrameRuntime": false,
|
||||||
|
|
|
@ -23,7 +23,7 @@ VistorPerms = [
|
||||||
'my_examtest',
|
'my_examtest',
|
||||||
]
|
]
|
||||||
def get_consumerperm_list(consumer):
|
def get_consumerperm_list(consumer):
|
||||||
perms = consumer.role.perms.values_list('code', flat=True)
|
perms = list(consumer.role.perms.values_list('code', flat=True))
|
||||||
if consumer.exceed_date and (consumer.exceed_date < datetime.date(timezone.now())):
|
if consumer.exceed_date and (consumer.exceed_date < datetime.date(timezone.now())):
|
||||||
perms.append('account_exceed')
|
perms.append('account_exceed')
|
||||||
cache.get_or_set('cperms_'+str(consumer.id), perms)
|
cache.get_or_set('cperms_'+str(consumer.id), perms)
|
||||||
|
|
Loading…
Reference in New Issue