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
AAAAAAUUUUUggggGGGGGHHHHHHhhhRRrrrr
So class, the lesson today is that if you have system_settings_form($form) form (meaning masic submit and creating variables is handled automatically), you CANNOT have a helper submit function with the same name plus _submit.
OK, you already knew that.
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
