Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/RestQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ RestQuery.prototype.getUserAndRoleACL = function() {
}
return this.auth.getUserRoles().then((roles) => {
// Concat with the roles to prevent duplications on multiple calls
this.findOptions.acl = this.findOptions.acl.concat(roles);
const aclSet = new Set([].concat(this.findOptions.acl, roles));
this.findOptions.acl = Array.from(aclSet);
return Promise.resolve();
});
};
Expand Down