denies method

bool denies(
  1. String ability
)

Determine if any of the given abilities should be denied for the current user.

Implementation

bool denies(String ability) {
  return !allows(ability);
}