bugfix
This commit is contained in:
parent
71e17ad494
commit
703c266fd2
@ -17,11 +17,11 @@ async def add_roleperm(sor, roleid, permid):
|
||||
}
|
||||
recs = await sor.R('rolepermission', ns.copy())
|
||||
if recs:
|
||||
print(f'{role}, {permid} 已经存在')
|
||||
print(f'{roleid}, {permid} 已经存在')
|
||||
return
|
||||
ns['id'] = getID()
|
||||
await sor.C('rolepermission', ns)
|
||||
print(f'{role}, {permid} perm add')
|
||||
print(f'{roleid}, {permid} perm add')
|
||||
return
|
||||
|
||||
async def main():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user