diff --git a/rbac/check_perm.py b/rbac/check_perm.py index 0d77ed2..c3dace4 100644 --- a/rbac/check_perm.py +++ b/rbac/check_perm.py @@ -119,7 +119,13 @@ async def register_user(sor, ns): ns.login_fail_count = 0 ns1 = DictObject(id=id, orgname=ns.username) await create_org(sor, ns1) - await create_user(sor, ns) + roles = [ + { + 'orgtypeid': 'customer', + 'roles': ['customer', 'admin'] + } + ] + await create_user(sor, ns, roles) return { "status": "ok", "data": { diff --git a/wwwroot/user/userapikey/index.ui b/wwwroot/user/userapikey/index.ui index aa1dd1b..512103d 100644 --- a/wwwroot/user/userapikey/index.ui +++ b/wwwroot/user/userapikey/index.ui @@ -1,7 +1,7 @@ { "widgettype": "VBox", "options": { - "cheight": 40, + "css": "filler", "height": "100%", "width": "100%" }, "subwidgets": [