Userreference Access
AND/OR logic error in Userreference Access function
OK, the problem is definitely in this function. I'll get back to it in a little bit, but it may make enough sense for you to correct where an OR isn't doing what I think it should. I'm dyslexic and I swear that's why I can't do a damn thing with ANDs and ORs.
function userreference_access_node_grants($account, $op) {
$grants = array();
switch ($op) {
case 'view': Userreference Access
With Userreference Access, site administrators can choose to give additional view or edit access to users who are associated with a node by userreference fields.
How to break Drupal's system_settings_form submit handling without trying
UPDATE for Drupal 6: If you provide a submit handler for a drupal_set_form form, you no longer have to add the system handler explicitly too.
The array() silliness at the end is gone, instead #submit itself is a simple, non-associative array.
In Drupal 6, whether the form is handled by the settings page helpful form wrapper or not, all you have to do is tack on another function to call.
Figuring out User-based Node Access in Drupal (again), some notes
Simply looking at this function is one of the most useful things you can do to understand node access control in Drupal. From the 5.3 version of node.module
/** * This function will call module invoke to get a list of grants and then * write them to the database. It is called at node save, and should be
RE: Node access module (based on users listed in userreference fields)
I created a module (attached, in case you're curious) that's a user reference widget. When placed on a node type, it will hide itself and fill itself in from the URL with the person the request is being made of. When a node with the field on it is submitted, it emails the person.
Node Authors module: give multiple people edit rights to specific content based on userreference field
Deep background:
Michelle: Anyone know of some good docs on doing access control? The node chapter of PDD touches on it but not enough for me to really get it and what I'm trying to do is complicated
[10:55am] agentrickard: node access or user access?
[10:55am] Michelle: Well, user access to nodes
