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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jagermonster created an issue. See original summary.

jagermonster’s picture

Here 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

klonos’s picture

@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.

jagermonster’s picture

Status: Active » Closed (won't fix)