Implement CSV download

This commit is contained in:
Zaid Abdulla committed 2018-12-26 00:22:07 -08:00
1 parent 24b047bd5e
commit a49cbc5e40
20 files changed
+391 -215

No files matched your search

+4 -4
View File
@@ -10,7 +10,7 @@ const validators = {
class Authorizer {
constructor(permissionSets) {
this.permissionSets = permissionSets;
this.validtorCache = new WeakMap();
this.validatorCache = new WeakMap();
this.hasAccessCache = {};
}
@@ -34,8 +34,8 @@ class Authorizer {
}
getValidator(resourceType, resource) {
if (this.validtorCache.has(resource))
return this.validtorCache.get(resource);
if (this.validatorCache.has(resource))
return this.validatorCache.get(resource);
let funcs = {};
@@ -70,7 +70,7 @@ class Authorizer {
return valid;
};
this.validtorCache.set(resource, validator);
this.validatorCache.set(resource, validator);
return validator;
}
}