Raise new AccessDeniedError exception when it's detected that access has not been granted.