Ensure that a new row should be added on top in the User Management dialog. Fixes #5817

This commit is contained in:
Akshay Joshi
2023-05-18 13:26:47 +05:30
parent 4fd1e16bb4
commit 6949b41fb9
5 changed files with 19 additions and 8 deletions

View File

@@ -239,6 +239,7 @@ class UserManagementSchema extends BaseUISchema {
{
id: 'userManagement', label: '', type: 'collection', schema: obj.userManagementCollObj,
canAdd: true, canDelete: true, isFullTab: true, group: 'temp_user',
addOnTop: true,
canDeleteRow: (row)=>{
return row['id'] != current_user['id'];
},