code: function(rules, verb, group, resource) {
        var resources = rules[group];
        if (!resources) {
          return false;
        }
        var verbs = resources[resource];
        if (!verbs) {
          return false;
        }
        return _.includes(verbs, verb) || _.includes(verbs, '*');
      }
docs: _canI checks whether any rule allows the specified verb (directly or via a wildcard verb) on the literal group and resource.