Restrict custom link to owner of node
mikl - February 28, 2008 - 10:54
| Project: | Custom Links |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Would it be possible to restrict a custom link to the owner of the node? For http://letsmakerobots.com/ we would like a "blog this" link on robots, but it is only possible to blog your own project (by design), so I need to keep the link from showing up if the node doesn't belong to you.
Is that possible, or could it perhaps be added as a possibility?

#1
not sure if it helps, but the friend module in drupal6 does this - it shows link for each node (in blocks too) so that a user can click and it automatically identifies the user (logged in) who clicked and cuts to createcontent/blog for the specific user (and inserts the relative link to the item being written about) - perhaps you could look over the code he's using to do this...
#2
Would it be possible to add this as a D6 feature? My use case: a Custom Link to node/[nid]/delete so that the node's author (which has permission to "delete own Nodetype content") can remove the node. It works nicely, only problem is that everybody sees the link, even if it will result in "access denied" for everyone but the author. Note that the Friend module has been unpublished. Also, I am using the words "author" and "owner" interchangeably... Thank you.