From ec2f474b1668df05cd6ae38c065644cf726aefcd Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 7 Oct 2014 23:21:58 +0000 Subject: [PATCH] If user changes the account or location, this changes the ACL ID. Remove the previous ID if it is an edit. --- admin/js/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin/js/app.js b/admin/js/app.js index 93d064bf17..4c892a9883 100644 --- a/admin/js/app.js +++ b/admin/js/app.js @@ -552,6 +552,13 @@ app.classes.admin = AppJS.extend( if(_value.acl_account && (_value.acl_appname && _value.acl_location || _value.apps)) { var id = _value.acl_appname+':'+_value.acl_account+':'+_value.acl_location; + if(content && content.id && id != content.id) + { + // Changed the account or location, remove previous or we + // get a new line instead of an edit + this.egw.json(className+'::ajax_change_acl', [content.id, 0], null,this,false,this) + .sendRequest(); + } var rights = 0; for(var i in _value.acl) {