Skip to content

Commit

Permalink
fix field permissions check in aggregate (#8575)
Browse files Browse the repository at this point in the history
  • Loading branch information
azrikahar committed Oct 6, 2021
1 parent e8c38be commit 11d259b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/services/authorization.ts
Expand Up @@ -114,7 +114,7 @@ export class AuthorizationService {
for (const aliasMap of Object.values(aggregate)) {
if (!aliasMap) continue;

for (const column of Object.keys(aliasMap)) {
for (const column of Object.values(aliasMap)) {
if (allowedFields.includes(column) === false) throw new ForbiddenException();
}
}
Expand Down

0 comments on commit 11d259b

Please sign in to comment.