- Use this refence instead of global ns property.

This commit is contained in:
hackademix 2019-10-27 14:18:51 +00:00
parent bb64b759b1
commit b1733d4392
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ var {Permissions, Policy, Sites} = (() => {
}
cascadeRestrictions(perms, topUrl) {
let topPerms = ns.policy.get(topUrl, topUrl).perms;
let topPerms = this.get(topUrl, topUrl).perms;
if (topPerms !== perms) {
let topCaps = topPerms.capabilities;
perms = new Permissions([...perms.capabilities].filter(c => topCaps.has(c)),