hasPolicy method
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);
}