Jump to:
| Project: | Simple Access |
| Version: | 6.x-2.0-rc1 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Start with a node that has "owner permissions" checked.
Uncheck them all.
That node will now be viewable by all.
However, when you edit the page afterwards, the "owner's permissions" will be checked by default and be reapplied on save unless you manually uncheck them each time.
This really confuses the user as well, because when they check to see if those perms have been successfully unapplied, it looks like they haven't been.
Database details:
When "owners permissions" is unapplied, the corresponding 'simple_access_author' entry in the "node_access" table is removed.
However, the corresponding record in the 'simple_access_owner' table is not deleted, which then causes the SA edit form to be repopulated.
The solution is to remove the corresponding 'simple_access_owner' record when all 'owners permissions' are unchecked.
I'll take a look and maybe I can generate a patch...
Comments
#1
OK, I realize I don't know nearly enough about drupal internals to fix this.
As a work around I've "hidden" the Owner permissions by commenting out these lines at around line 459:
$form['sa']['simple_access']['owner'] = simple_access_form_row('owner', $group, $access, $admin);
$form['sa']['simple_access']['owner']['#parents'] = array('simple_access_owner');
#2
Yes, this is a worrying problem but I'm glad someone else has seen it too! I have this problem on my main store page and I live in fear of my customers not being able to see it.
Does anyone know if there is a fix for this other than the workaround suggested by delineate?
Nigel
#3
Thanks this is now fixed.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.