Closed (fixed)
Project:
Node Relationships
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2009 at 22:06 UTC
Updated:
23 Mar 2011 at 19:27 UTC
Jump to comment: Most recent file
Comments
Comment #1
markus_petrux commentedThere's a @todo note in the code (noderelationships.module) about this.
Ok, so we also need to deal with views where the user does not have access to prevent access denied errors. But still, we need to find a way to cache this information because this function could impact performace.
I'm turning this issue into a feature request, but postponed until there's a patch for review. I'm not sure I'll have the time for this in the short term though.
Comment #2
markus_petrux commentedOk, I have committed to CVS a small change that allows external modules deny access (and hide) the Relationships tab. All you need to do is implement
hook_noderelationships_backref_access()in a custom module as in this example:This fix is not included in
noderelationships 6.x-1.2. It should be available in the next development snapshot.Comment #3
tomsm commentedThanks a lot. I will wait for the next dev because I do not know how to create a custom module.
Comment #4
markus_petrux commentedAh, that's pretty easy:
Let's say your module name is "mymodule".
1) Create a folder for your module in the same modules directory where you install modules. ie. sites/all/modules/mymodule, sites/domain/modules/mymodule
2) Create a file mymodule.info similar to this:
3) Create a file mymodule.module similar to this:
4) Goto modules administration and install your custom module. It should be found in "Custom modules" category.
5) Assign the new permission implemented by your custom module to the roles of your choice. Or you may want to change this to suit your needs.
For further information, please look at the handbooks, or ask in the development forums.
Comment #5
tomsm commentedThis works great! Thank you, markus.
Comment #7
emptyvoid commentedFor those that "stumble upon" this closed notice I have attached a small module to enable a global permission for seeing the tab.