- Use this refence instead of global ns property.
This commit is contained in:
parent
bb64b759b1
commit
b1733d4392
|
@ -465,7 +465,7 @@ var {Permissions, Policy, Sites} = (() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
cascadeRestrictions(perms, topUrl) {
|
cascadeRestrictions(perms, topUrl) {
|
||||||
let topPerms = ns.policy.get(topUrl, topUrl).perms;
|
let topPerms = this.get(topUrl, topUrl).perms;
|
||||||
if (topPerms !== perms) {
|
if (topPerms !== perms) {
|
||||||
let topCaps = topPerms.capabilities;
|
let topCaps = topPerms.capabilities;
|
||||||
perms = new Permissions([...perms.capabilities].filter(c => topCaps.has(c)),
|
perms = new Permissions([...perms.capabilities].filter(c => topCaps.has(c)),
|
||||||
|
|
Loading…
Reference in New Issue