mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 15:45:26 +00:00
(js) Add @ prefix to group id prior to removal
This fixes the issue of deleting an unknown group.
This commit is contained in:
@@ -137,6 +137,8 @@ function onUserRemove(event) {
|
||||
for (var i = 0; i < nodes.length; i++) {
|
||||
var userId = nodes[i].id.unescapeHTML();
|
||||
if (userId != defaultUserID && userId != "anonymous") {
|
||||
if ($(nodes[i]).hasClassName("normal-group"))
|
||||
userId = '@' + userId;
|
||||
triggerAjaxRequest(baseURL + encodeURIComponent(userId), removeUserCallback,
|
||||
nodes[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user