Skip to content

Commit

Permalink
fix: return filtered data
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfede committed Oct 21, 2020
1 parent 7d8de1a commit fe02b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export abstract class Operation {
if (this.scopes) {
for (let resource in this.scopes) {
for (let action in this.scopes[resource]) {
checkAbility(ability, resource, action, data, filterFields, filterData);
data = checkAbility(ability, resource, action, data, filterFields, filterData);
}
}
}
Expand Down

0 comments on commit fe02b50

Please sign in to comment.