mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-10 22:37:12 +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:
1 parent
88f964cebd
commit
e62fd36653
1 file changed
+2
@@ -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