[pve-devel] [PATCH manager] fix #4739: ui: add group column in user list
Dominik Csapak
d.csapak at proxmox.com
Wed Jun 14 14:31:31 CEST 2023
to get a fast overview in which groups each user is.
for that we need to add the 'full=1' parameter.
this only tokens/groups to the api call, but we have that info in the
backend after parsing the config anyway, so it should not be very
costly.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/dc/UserView.js | 6 ++++++
www/manager6/form/UserSelector.js | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js
index 957ff682..39ca15ec 100644
--- a/www/manager6/dc/UserView.js
+++ b/www/manager6/dc/UserView.js
@@ -217,6 +217,12 @@ Ext.define('PVE.dc.UserView', {
},
dataIndex: 'keys',
},
+ {
+ header: gettext('Groups'),
+ dataIndex: 'groups',
+ renderer: Ext.htmlEncode,
+ flex: 1,
+ },
{
header: gettext('Comment'),
sortable: false,
diff --git a/www/manager6/form/UserSelector.js b/www/manager6/form/UserSelector.js
index 8fb31d7e..5af30441 100644
--- a/www/manager6/form/UserSelector.js
+++ b/www/manager6/form/UserSelector.js
@@ -7,7 +7,7 @@ Ext.define('pmx-users', {
],
proxy: {
type: 'proxmox',
- url: "/api2/json/access/users",
+ url: "/api2/json/access/users?full=1",
},
idProperty: 'userid',
});
--
2.30.2
More information about the pve-devel
mailing list