From 26d1fd1447293f85ea5dcb1a7dde77bfc445cab8 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 31 May 2026 10:38:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20register=5Fuser=20=E6=B7=BB=E5=8A=A0=20?= =?UTF-8?q?customer.admin=20=E8=A7=92=E8=89=B2=EF=BC=8C=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E6=97=B6=E5=90=8C=E6=97=B6=E5=88=86=E9=85=8D=20customer=20?= =?UTF-8?q?=E5=92=8C=20admin=20=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rbac/check_perm.py | 8 +++++++- wwwroot/user/userapikey/index.ui | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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": [