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.
Hi, Since this module uses hook_node_access for node access checks its not possible to overwrite the access permissions.
This adds another permission "view own invoices"
(Please note I have not updated all interfaces only the node view access callback)
Comment | File | Size | Author |
---|---|---|---|
#2 | 2762341-add-view-own-invoices-permission.patch | 1022 bytes | jagermonster |
Comments
Comment #2
jagermonster CreditAttribution: jagermonster as a volunteer commentedHere is a patch that will add this permission and update the hook_node_access function to allow users to view invoices that they are set as author for
Comment #3
klonos@jagermonster I doubt this will be implemented in this project. Perhaps it shouldn't. I'd use a generic solution instead:
https://www.drupal.org/project/view_own
https://www.drupal.org/project/private
https://www.drupal.org/project/nodetype_access
https://www.drupal.org/project/nodeaccess
https://www.drupal.org/project/node_view_permissions
https://www.drupal.org/project/content_access
I'm sure that one of these should satisfy your need. If so, then please close this issue here in order to allow the module maintainer to focus on fixing any pending bugs. Thanx.
PS: If you do end up using one of the modules above, please share your experience or at least tell people which one you used.
Comment #4
jagermonster CreditAttribution: jagermonster as a volunteer commented