mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Api: Make sure we don't add any unwanted data to account store
Push fallback can piggy-back some data, we don't want it
This commit is contained in:
parent
f1fdd7e2f1
commit
857943720e
@ -106,9 +106,16 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
|
||||
if(jQuery.isEmptyObject(accountStore))
|
||||
{
|
||||
// Synchronous
|
||||
egw.json('EGroupware\\Api\\Framework::ajax_user_list',[],
|
||||
egw.json("EGroupware\\Api\\Framework::ajax_user_list",[],
|
||||
function(data) {
|
||||
accountStore = jQuery.extend(true, {}, data||{});
|
||||
let types = ["accounts", "groups", "owngroups"];
|
||||
for(let t of types)
|
||||
{
|
||||
if(typeof data[t] === "object")
|
||||
{
|
||||
accountStore[t] = jQuery.extend(true, [], data[t]||[]);
|
||||
}
|
||||
}
|
||||
}, this, false
|
||||
).sendRequest(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user