check method

FutureOr<bool> check(
  1. AccessEvent operation
)

Implementation

FutureOr<bool> check(AccessEvent operation) async {
  var befNeed = _collections[operation.access.collection]?.beforeNeed;
  if (befNeed == null) {
    return _defaultRules[operation.type]!;
  }
  if (befNeed) {
    operation.before ??= (await dataAccess._read.call(operation.access)).data;
  }
  return _collections[operation.access.collection]!.checker(operation);
}