Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2019-07-16 15:42:46 +0300
committerAleksander Machniak <machniak@kolabsys.com>2019-07-16 15:42:46 +0300
commit7a854f1b56288c695e9406af8558bad6458c9385 (patch)
tree8383502a53ad025c0883ae6857f3c4cf2ce82032 /plugins
parenta80c5569abda639dfe693b464bb4896b9d2e26da (diff)
Fix removing acl entries (regression)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/acl/acl.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js
index 67cd631cc..531248d63 100644
--- a/plugins/acl/acl.js
+++ b/plugins/acl/acl.js
@@ -202,7 +202,7 @@ rcube_webmail.prototype.acl_list_update = function(html)
// Returns names of users in selected rows
rcube_webmail.prototype.acl_get_usernames = function()
{
- var users = [], n, len, cell, row,
+ var users = [], n, len, id, row,
list = this.acl_list,
selection = list.get_selection();
@@ -210,10 +210,8 @@ rcube_webmail.prototype.acl_get_usernames = function()
if (this.env.acl_specials.length && $.inArray(selection[n], this.env.acl_specials) >= 0) {
users.push(selection[n]);
}
- else if (row = list.rows[selection[n]]) {
- cell = $('td.user', row.obj);
- if (cell.length == 1)
- users.push(cell.text());
+ else if ((row = list.rows[selection[n]]) && (id = $(row.obj).data('userid'))) {
+ users.push(id);
}
}