Closed (works as designed)
Project:
Nodeaccess
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2019 at 05:01 UTC
Updated:
12 Oct 2021 at 06:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dchaffin commentedComment #3
dchaffin commentedI was confused by the core node_access table and this module's nodeaccess table. I still have other issues, but as this was a misunderstanding and I can't delete it, I'm closing it.
Comment #4
netsliverI think it is not working as it should.
Here is a patch which allows to correct the attribution of rights, the form saves well in base the information nevertheless the default values are not redisplayed.
Comment #5
jungleThe patch above could be simplified to the above which is exactly the same as the patch in #3185156: Permission to individual Users throws error on grants tab of nodes. I do not think it's a typo. Records save to the nodeaccess table are saved to the node_access table too, it's fine to query the node_access table here.
The extra nodeaccess table, from my understanding, is used for storing grants per node, or those grants will be lost after node permissions rebuilding.
Comment #6
jungleReuploading the patch here
Comment #7
jungleComment #8
alison@jungle Would you say this is a bug, or more like a task? -- if it's a bug, could you please clarify the behavior/brokenness?
Also, I think this is probably not specific to D9, right? It's both D8/D9? (Just asking for planning purposes.)
Comment #9
jungleHi, @alisonjo315, I think this is a bug, please see the issue summary of #3185156: Permission to individual Users throws error on grants tab of nodes for details/how to reproduce, and I'd suggest closing one of this one and #3185156: Permission to individual Users throws error on grants tab of nodes which is a duplicate of the other, IMO.> It's both D8/D9?
+1, both D8 and D9.
Comment #10
jungleFrom my understanding,
1. Table node_access is from the node module for storing grants
2. Table nodeaccess is from the nodeaccess module for storing the module's own grants.
There is an operation called
Rebuilding node access permissions, you can find it from status report page: /admin/reports/status.It rebuilds the node_access and rebuilds it from code/hook Implementations in general. The nodeaccess module stores the grants into the database. If no such extra nodeaccess table, all custom grants per node, set by the nodeaccess module will be lost.
So there are two tables that look alike, it's not a typo.
To me, this is not a bug report. It just needs an explanation of how does this module work.
Comment #11
netsliverAfter tests it works as designed!