Closed (fixed)
Project:
Nodeaccess
Version:
4.7.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2006 at 14:46 UTC
Updated:
14 May 2007 at 20:35 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedaccess control modules aren't really meant for that type of thing. If you want to make sure users can always edit their own pages, give the user's role 'edit own pages' access in settings > access control. Drupal will grant them access before consulting any other modules.
Comment #2
mgalera commentedI have problems too having the users to see their new created content.
I think the key is that nodeaccess_node_grants instructs node_load to add query conditions refering only to the user roles (that is, nodeaccess_rid realm), but none refering his uid.
Because of this, if a user has no roles that allow him to see the node, node_load returns 0 rows and, following the code in node.module, the hook_access for the type module is not executed and so the 'edit own content' access is not applied.
Adding nodeaccess_uid conditions via nodeaccess_node_grants has no efect because there is no nodeaccess_uid entry in node_access table. The only thing I can think of is adding a "user has all perms" into node_access when inserting a new node:
This allows the users to see their new created content, but it does not honor the 'edit own content' entry in settings -> access control. A workaround could be to add a "allow user to edit own content" checkbox for every content type in the nodeaccess config page, but then it starts to feel a little clunky.
Anyway I feel like a better solution should exist. Any Idea?
Comment #3
Anonymous (not verified) commentedlatest version allows author permissions
Comment #4
dries commented