bugfix
This commit is contained in:
parent
d03b45962f
commit
7db98ad598
@ -6,9 +6,28 @@
|
|||||||
"title":"Organization",
|
"title":"Organization",
|
||||||
"params": {
|
"params": {
|
||||||
"sortby":"orgname",
|
"sortby":"orgname",
|
||||||
|
"editor":{
|
||||||
|
"binds":[
|
||||||
|
{
|
||||||
|
"wid":"province_id",
|
||||||
|
"event":"changed",
|
||||||
|
"actiontype":"script",
|
||||||
|
"target":"city_id",
|
||||||
|
"script":"this.loadData({cond:'parentid=\\''+params.province_id+'\\''})"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"wid":"city_id",
|
||||||
|
"event":"changed",
|
||||||
|
"actiontype":"script",
|
||||||
|
"target":"distinct_id",
|
||||||
|
"script":"this.loadData({cond:'parentid=\\'' + params.city_id+ '\\''})"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"browserfields": {
|
"browserfields": {
|
||||||
"exclouded": ["id"],
|
"exclouded": ["id"],
|
||||||
"cwidth": {}
|
"alters": {
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"editexclouded": [
|
"editexclouded": [
|
||||||
"id"
|
"id"
|
||||||
|
Binary file not shown.
@ -88,7 +88,7 @@ async def create_user(sor, ns, roles=[]):
|
|||||||
for rt in roles:
|
for rt in roles:
|
||||||
sql = "select * from role where orgtypeid = ${otid}$ and name in ${roles}$)"
|
sql = "select * from role where orgtypeid = ${otid}$ and name in ${roles}$)"
|
||||||
recs = await sor.sqlExe(sql, {
|
recs = await sor.sqlExe(sql, {
|
||||||
'otid': rt['orgtypeid',
|
'otid': rt['orgtypeid'],
|
||||||
'roles': rt['roles']
|
'roles': rt['roles']
|
||||||
})
|
})
|
||||||
for r in recs:
|
for r in recs:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
python -m rbac/set_role_perms sage rbac owner superuser role permission rolepermission user user role organizationorgtypes
|
python -m rbac.set_role_perms sage rbac owner superuser role permission rolepermission user user role organizationorgtypes
|
||||||
python -m rbac/set_role_perms sage rbac owner admin user userrole
|
python -m rbac.set_role_perms sage rbac owner admin user userrole
|
||||||
python -m rbac/set_role_perms sage rbac customer admin user userrole
|
python -m rbac.set_role_perms sage rbac customer admin user userrole
|
||||||
python -m rbac/set_role_perms sage rbac reseller admin user userrole
|
python -m rbac.set_role_perms sage rbac reseller admin user userrole
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user