How to duplicate:
Have a field on typeA that has a node reference field to typeB with create enabled for node relationships
Have a role that can create type typeA but not typeB

Tab displays to create and reference, clicking on it leads to 404.

Patch adds logic to make sure there's at least one type that can be referenced for that field.

CommentFileSizeAuthor
node_relationship_access_to_tabs.patch1.34 KBhefox
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hefox’s picture

Title: Tabs display for users who cannot create any of reference fields » Create Tab display for users who cannot create any of reference types

*Scowl* Fixing title

ice5nake’s picture

+1 for this to get fixed. I am noticing it as well.

markus_petrux’s picture

So.. is this RTBC?

ice5nake’s picture

I didn't test this patch, but I will.

ice5nake’s picture

I keep getting the following when I run sudo patch < node_relationship_access_to_tabs.patch from the directory that the patch and the file are in.

Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/noderelationships/noderelationships.pages.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/includes/theme.inc on line 291

I get this message on every Drupal page once I run the "cache clear" function.

Probably something dumb.

ice5nake’s picture

OK, so I manually applied the patch and it is working as described.

Thanks hefox.