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())
|
recs = await sor.R('rolepermission', ns.copy())
|
||||||
if recs:
|
if recs:
|
||||||
print(f'{role}, {permid} 已经存在')
|
print(f'{roleid}, {permid} 已经存在')
|
||||||
return
|
return
|
||||||
ns['id'] = getID()
|
ns['id'] = getID()
|
||||||
await sor.C('rolepermission', ns)
|
await sor.C('rolepermission', ns)
|
||||||
print(f'{role}, {permid} perm add')
|
print(f'{roleid}, {permid} perm add')
|
||||||
return
|
return
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user