code: function(rules) {
        return _.some(rules, function(rule) {
          return _.some(rule.resources, function(resource) {
            return checkResource(resource) && !_.isEmpty(_.intersection(rule.verbs ,(["*", "create", "update"])));
          });
        });
      }
docs: Check if user can create/update any resource on the 'Add to project' so the button will be displayed.