Makes sure _acl is set as empty {} (#2495)
* regression test for #2465 * Makes sure _acl is set when locked down - Fixes #2465
This commit is contained in:
@@ -341,6 +341,7 @@ const addLegacyACL = restObject => {
|
||||
restObject._wperm.forEach(entry => {
|
||||
_acl[entry] = { w: true };
|
||||
});
|
||||
restObjectCopy._acl = _acl;
|
||||
}
|
||||
|
||||
if (restObject._rperm) {
|
||||
@@ -351,9 +352,6 @@ const addLegacyACL = restObject => {
|
||||
_acl[entry].r = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (Object.keys(_acl).length > 0) {
|
||||
restObjectCopy._acl = _acl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user