diff options
Diffstat (limited to 'plugins/acl')
| -rw-r--r-- | plugins/acl/acl.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/acl/acl.js b/plugins/acl/acl.js index 5c7a6d41f..9ca0a2384 100644 --- a/plugins/acl/acl.js +++ b/plugins/acl/acl.js @@ -99,9 +99,12 @@ rcube_webmail.prototype.acl_cancel = function() // Update data after save (and hide form) rcube_webmail.prototype.acl_update = function(o) { - // delete row + // delete old row if (o.old) this.acl_remove_row(o.old); + // make sure the same ID doesn't exist + else if (this.env.acl[o.id]) + this.acl_remove_row(o.id); // add new row this.acl_add_row(o, true); |
