What is gid in node_access table when realm = 'term_access'?
The Drupal site has been up and down periodically today as I try to work through this issue. I've got the case_tracker module installed. I created a case node, then went out to see what grants were written into the node_access table for the node. I only saw entries with realm = 'term_access', but don't recognize the gid numbers (they don't seem to logically relate to vocabulary term or group ids in my system). So, I began searching Drupal and the internet trying to find out the answer to this question: What is the "gid" value in the node_access table referring to when the realm = 'term_access'? Can anyone explain or point me to a resource that will explain it? Thanks! -ron -- Ron Parker Software Creations http://www.scbbs.com Self-Administration Web Site http://saw.scbbs.com SDSS Subscription Mgmt Service http://sdss.scbbs.com Central Ave Dance Ensemble http://www.centralavedance.com R & B Salsa http://www.randbsalsa.com
Ron Parker wrote:
So, I began searching Drupal and the internet trying to find out the answer to this question:
What is the "gid" value in the node_access table referring to when the realm = 'term_access'?
Can anyone explain or point me to a resource that will explain it? Thanks!
The 'gid' is the 'Grant ID' which identifies the group this grant belongs to. What this means is that every record in the node_access table grants privileges (either view, update or delete) to the node to anyone with that grant ID. What the Grant ID really means is completely up to the realm that's using it. In the case of taxonomy access (which uses the term_access realm), a GID maps directly to an RID, which is a Role ID, and is one of the most common groupings. But for something like OG, the GID is a NID which points to the organic group node that represents the group. Other modules could have other ways to group users together.
Earl Miles wrote:
Ron Parker wrote:
What is the "gid" value in the node_access table referring to when the realm = 'term_access'?
The 'gid' is the 'Grant ID' which identifies the group this grant belongs to. What this means is that every record in the node_access table grants privileges (either view, update or delete) to the node to anyone with that grant ID.
What the Grant ID really means is completely up to the realm that's using it. In the case of taxonomy access (which uses the term_access realm), a GID maps directly to an RID, which is a Role ID, and is one of the most common groupings. But for something like OG, the GID is a NID which points to the organic group node that represents the group. Other modules could have other ways to group users together.
Got it! Upon closer inspection, it appears that my Taxonomy Access Permissons weren't what I thought they were. The RIDs are legitimate. Thanks so much! -ron -- Ron Parker Software Creations http://www.scbbs.com Self-Administration Web Site http://saw.scbbs.com SDSS Subscription Mgmt Service http://sdss.scbbs.com Central Ave Dance Ensemble http://www.centralavedance.com R & B Salsa http://www.randbsalsa.com
On 7/27/07, Ron Parker <sysop@scbbs.com> wrote:
The Drupal site has been up and down periodically today as I try to work through this issue.
I've got the case_tracker module installed. I created a case node, then went out to see what grants were written into the node_access table for the node. I only saw entries with realm = 'term_access', but don't recognize the gid numbers (they don't seem to logically relate to vocabulary term or group ids in my system).
So, I began searching Drupal and the internet trying to find out the answer to this question:
What is the "gid" value in the node_access table referring to when the realm = 'term_access'?
Can anyone explain or point me to a resource that will explain it?
Thanks!
-ron
gid = "grant id". See an example here http://2bits.com/articles/writing-a-simple-node-access-module-resume-access.... This is a difficult area to understand in Drupal for most of us, and you have a lot of company in asking what these mean. -- 2bits.com http://2bits.com Drupal development, customization and consulting.
participants (3)
-
Earl Miles -
Khalid Baheyeldin -
Ron Parker