diff --git a/packages/casl-angular/src/can.js b/packages/casl-angular/src/can.js index 5ba712ab2..713d6223b 100644 --- a/packages/casl-angular/src/can.js +++ b/packages/casl-angular/src/can.js @@ -16,16 +16,16 @@ export class CanPipe { this.unsubscribeFromAbility = noop; } - transform(resource, action) { + transform(resource, action, field) { if (this.unsubscribeFromAbility === noop) { this.unsubscribeFromAbility = this.ability.on('updated', () => this.cd.markForCheck()); } - return this.can(action, resource); + return this.can(action, resource, field); } - can(action, resource) { - return this.ability.can(action, resource); + can(action, resource, field) { + return this.ability.can(action, resource, field); } ngOnDestroy() {