I've been working up a patch to submit for simple_access. Basically, I'm trying to achieve the concept of letting a student say "only share this node with the faculty ", but of course the students aren't and shouuldn't in the faculty role. I'm sort of stuck. I had no problem modifying simple_access to display all the groups, but reading the API documentation, I'm unclear as to whether there's a hook that will let me override the permissions behavior defined in the node_access table. If I read correctly hook_access only applies to nodes that I define in my module, but I was looking for site wide behavior. Can hook_node_grants be leveraged to do this? It's a little unclear to me from the docs. Is there a different recommended strategy? Dave
This might help: http://api.drupal.org/api/4.7/group/node_access On Thursday 24 August 2006 07:59, Metzler, David wrote:
I've been working up a patch to submit for simple_access. Basically, I'm trying to achieve the concept of letting a student say "only share this node with the faculty ", but of course the students aren't and shouuldn't in the faculty role.
Once a node is marked 'faculty only', can the student who marked it still read it? If so, will faculty realize that at least one student can read it, despite the 'faculty only' mark? -Dave
participants (2)
-
Dave Cohen -
Metzler, David