allows<Arg> method

FutureOr<bool> allows<Arg>(
  1. String ability, [
  2. Arg? arg
])

Verify identity has ability with arg.

Implementation

FutureOr<bool> allows<Arg>(String ability, [Arg? arg]) =>
    _accessControl.check<Arg>(
      this,
      ability,
      arg,
    );