Skip to content

Commit

Permalink
fixup logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Toozs committed Nov 27, 2023
1 parent c137c69 commit e7ae687
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/auth/backends/ChainBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ export default class ChainBackend extends BaseBackend {
return Object.keys(policyMap).map(key => {
const policyRes: any = {
isAllowed: policyMap[key].isAllowed,
action: policyMap[key].action,
};
if (policyMap[key].action) {
policyRes.action = policyMap[key].action;
}
if (typeof policyMap[key].isImplicit === 'boolean') {
policyRes.isImplicit = policyMap[key].isImplicit;
}
Expand Down

0 comments on commit e7ae687

Please sign in to comment.