requiresCaller method

bool requiresCaller(
  1. String action
)

Whether the policy for action needs a caller: its user parameter is not nullable, so a request that authenticated nobody cannot be asked about. Judged on the user alone -- a policy that also needs a resource is refused for that, which signing in would not change. False for an action nothing registered.

Implementation

bool requiresCaller(String action) {
  final _DVPolicyEntry? entry = _entry(DVApiScopes.policyKeyOf(action));
  return entry != null && !entry.takesNoUser;
}