fix users being delete from groups when not confirmed #7501
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Dec 19, 2025 at 12:59 UTC
6c2b739f8d651fc19e60ecd93b7ab7385a7e9f64
1 file changed
+1
-2
views/default3.handlebars
+1
-2
@@ -18148,9 +18148,8 @@
18148
if (users && users[userid]) { uname = users[userid].name; }
18149
if (userinfo._id == userid) { uname = userinfo.name; }
18150
setModalContent('xxAddAgent', "Remove User Membership", format("Confirm membership removal of user \"{0}\"?", EscapeHtml(decodeURIComponent(uname))));
18151
- showModal('xxAddAgentModal', 'idx_dlgOkButton', p51viewuserEx2(3, userid));
18151
+ showModal('xxAddAgentModal', 'idx_dlgOkButton', () => { meshserver.send({ action: 'removeuserfromusergroup', ugrpid: currentUserGroup._id, userid: userid }); });
18152
}
18153
- function p51viewuserEx2(button, userid) { meshserver.send({ action: 'removeuserfromusergroup', ugrpid: currentUserGroup._id, userid: userid }); }
18153
18154
function p51showAddUserDialog() {
18155
if (xxdialogMode) return false;