It would be nice to be able to restrict access to the "Related Links" form that appears when adding/editing nodes on a per-role basis.

Comments

ghing’s picture

StatusFileSize
new4.72 KB

I've created a patch adding this basic functionality. To do this I implemented links_related_perm() in order to add the permission "add related links". I then modifed links_related_form_alter() to check for this permission before adding the related links form to the node add/edit form (form id NODE_TYPE_node_form).

ghing’s picture

StatusFileSize
new5.11 KB

I updated my patch to eliminate an error message that occurred when a user without the 'add related links' permission saved a node.

avpaderno’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)
Issue tags: -links related access permission restriction

I am closing this issue, as Drupal 6 is now not supported.