mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
If user changes the account or location, this changes the ACL ID. Remove the previous ID if it is an edit.
This commit is contained in:
parent
7fe36b289b
commit
cdae84a3ba
@ -552,6 +552,13 @@ app.classes.admin = AppJS.extend(
|
|||||||
if(_value.acl_account && (_value.acl_appname && _value.acl_location || _value.apps))
|
if(_value.acl_account && (_value.acl_appname && _value.acl_location || _value.apps))
|
||||||
{
|
{
|
||||||
var id = _value.acl_appname+':'+_value.acl_account+':'+_value.acl_location;
|
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;
|
var rights = 0;
|
||||||
for(var i in _value.acl)
|
for(var i in _value.acl)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user