hasPolicy method

bool hasPolicy(
  1. List<String> params
)

hasPolicy determines whether an authorization rule exists.

params the "p" policy rule, ptype "p" is implicitly used. return whether the rule exists.

Implementation

bool hasPolicy(List<String> params) {
  return hasNamedPolicy('p', params);
}