Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add/Edit/Delete links should be visible only to users with permission to edit the node.
Comment | File | Size | Author |
---|---|---|---|
#12 | access_permissions-1390102.patch | 31.53 KB | neerajskydiver |
Comments
Comment #1
blenny CreditAttribution: blenny commentedComment #2
blenny CreditAttribution: blenny commentedComment #3
g089h515r806 CreditAttribution: g089h515r806 commentedI think this does not matter.
Comment #4
blenny CreditAttribution: blenny commentedIs it possible to hide the links from other users? Only the content owner should see the add/edit/delete links.
Comment #5
g089h515r806 CreditAttribution: g089h515r806 commentedI think it could be done in template file of views.
It is possible.
Comment #6
miiimoooMaybe if the edit, delete links were implemented as views field(s) there could be a check like in field_collection:
field_colection.module,866
and a views modifier setting to enable the Add link with code like:
same, 901
Then it could limit display of the links to users who have permission. This would be a great addition to this module.
Great work BTW!
Comment #7
Sylense CreditAttribution: Sylense commentedAs a quick fix I was able to do this by simply using css to set the links to display none based on a context of the user role
Comment #8
g089h515r806 CreditAttribution: g089h515r806 commentedIt seems that field collection module will improve Add/edit/delete links.
Comment #9
Canton32 CreditAttribution: Canton32 commentedHas anyone confirmed a fix for this i have the same problems. And please could you explain in layman terms as im a newbie
I'm surprised that this module didn't honor the permissions from the core of Drupal admin/people/permissions:Node (content type permissions)
Other than that its an amazing module. Its so easy to implement.
Thanks in advance
Comment #10
haopei CreditAttribution: haopei commentedHi Sylense,
What is the code for this quick fix?
Comment #10.0
haopei CreditAttribution: haopei commenteddjsfhasdbfhsjb
Comment #11
lazly CreditAttribution: lazly commentedI confirm this bug, subscribe
Comment #12
neerajskydiver CreditAttribution: neerajskydiver at Valuebound commentedThe problem is fixed using the patch.
What I did is remove the Global text fields and add PHP fields instead to check the user access to the links and marked the hide if empty check-box. Secondly in the table view format settings marked the HIDE EMPTY COLUMN option which hides the whole column if a user don't have access to the links.
Comment #13
neerajskydiver CreditAttribution: neerajskydiver as a volunteer and at Valuebound commentedI have fixed this in latest Dev Version. You will have to revert default view manually to see changes. Add, Edit and Delete Links now have there own handlers.