Bug 1197420 Part 4 Apply dynamic permission changes r=kmag
MozReview-Commit-ID: 6TdcUv1fHPh
This commit is contained in:
@@ -689,8 +689,11 @@ class SchemaAPIManager extends EventEmitter {
|
||||
}
|
||||
}
|
||||
|
||||
function hasPermission(perm) {
|
||||
return context.extension.hasPermission(perm, true);
|
||||
}
|
||||
for (let api of apis) {
|
||||
if (Schemas.checkPermissions(api.namespace, context.extension)) {
|
||||
if (Schemas.checkPermissions(api.namespace, {hasPermission})) {
|
||||
api = api.getAPI(context);
|
||||
copy(obj, api);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user