fix: regression via c1b3079d93

Also refactored privilege render logic so that it no longer needs a server-side hack to render column count
This commit is contained in:
Julian Lam
2021-03-12 14:22:16 -05:00
parent 4cbd13fd9c
commit 2a939aad8d
9 changed files with 137 additions and 43 deletions

View File

@@ -53,14 +53,6 @@ categoriesAPI.getPrivileges = async (caller, cid) => {
responsePayload = await privileges.categories.list(cid);
}
// The various privilege .list() methods return superfluous data for the template, return only a minimal set
const validKeys = ['users', 'groups'];
Object.keys(responsePayload).forEach((key) => {
if (!validKeys.includes(key)) {
delete responsePayload[key];
}
});
return responsePayload;
};