The patch for modifications I discussed in TAC/OG Integration Step 2 (http://groups.drupal.org/node/3700) is located here as well as the latest OGUR distribution:
http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/somebodysysop...
Instructions for OGUR Release 5.x-3.0 and higher
Once OG User Roles module is downloaded and installed, you must:
- Install the node.module.multinode.patch
- Go to OG User Roles settings and place check in "TAC/OG Access
Control Integration" ("Integrate TAC and OG Access Control"). - Go to OG User Roles settings and click on the "Configure multinode UI"
tab. You will see the "multinode_access" table listing of node
grant realms. You need to make the following changes to this table:
This patch is included in OGUR Release 5.x-3.0 and higher. It is also available from here:
http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/somebodysysop...
http://ftp.scbbs.com/pub/drupal/TAC_OG/
Download and place this patch file into your Drupal web site "/modules/node"
directory. Then, execute this command:
patch -p0 < node.module.multinode.patch ogr_access
==========
Place check in checkbox next to "ogr_access" Realm name.
Enter "ogr" in Group column.
Select "OR" as Logic.
Select "1" as Weight.
Select "0" for Check.
term_access
===========
Place check in checkbox next to "term_access" Realm name.
Enter "tac" in Group column.
Select "AND" as Logic.
Select "0" as Weight.
Select "0" for Check.
All other realms should remain unchecked.
See the screenshot of what your table modification should look
like: http://drupal.org/files/OGRConfigureMultinodeUI.jpg
Click on "Save changes" button to save your changes.- If you do not see ogr_access realm in multinode access table, see: http://drupal.org/node/300421
How to apply patches: http://drupal.org/node/60108
Instructions for OGUR releases prior to 3.0
Previous to release 2.0 of OG User Roles, there are were 3 patches:
og.module.TAC_OG.patch
taxonomy_access.module.TAC_OG.patch
node.module.TAC_OG.patch
As of OG User Roles release 2.0, but previous to 3.0 there is only one patch:
og_user_roles.nodeapi_access.patch
As you read in Step 2, there were several modules that I modified for my own customizations, but the OG, Node and Taxonomy Access Control modules were the basic modules that needed to be modified in order for TAC and OG to work together. In release 2.0 of OG User Roles, I managed to put most of these modifications into the OG User Roles module itself.
The only remaining modification was to the node_access function in the node.module, to handle the updated process of access control. For this, I use the Nodeapi Access patch, which is discussed in length here: http://drupal.org/node/143075 and here: http://drupal.org/node/122173. It is my hope that this patch will make it's way into Drupal 7 core.
You can also retrieve this patch from here: http://ftp.scbbs.com/pub/drupal/TAC_OG
And, it is included in the OG User Roles 2.0 and higher distributions.
| Attachment | Size |
|---|---|
| TAC_OG_README.txt | 1.91 KB |
Comments
TAC/OG Patches Modified and Moved
The OG User Roles module is now finally a Drupal project: http://www.drupal.org/project/og_user_roles.
The TAC/OG access control has now been added to the og_user_roles module, and the module is now required for implementation of this functionality. The TAC/OG patches are now located here: http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/somebodysysop... and have now been modified to reflect this change.
Are patches still required to implement TAC/OG functionality?
I came across this rather old page while struggling to implement TAC within Organic Groups. Is a patch still required to get fine grained access control based on taxonomy within organic groups? If so, is there an update patch for the latest versions of Drupal 6.x and OGUR 6.x-4.1?
Thanks!
I don't know if anyone ever
I don't know if anyone ever got back to you from OGUR, but the patch IS still required in Drupal 6.x. You have to be using the 6.x-1.5 version of OG User Roles. The patch is included in the tar; it is named "node.module.multinode.patch". It most likely will not apply correctly (test it before applying); there will be one section you will have to modify manually, I believe. You will also need to modify the og_user_roles.module file with the patch in this bug report: http://drupal.org/node/528154. It's been tested by community members, but hasn't been applied as no one seems to be working on the 6.x-1.5 branch anymore. This page (http://groups.drupal.org/node/5392) may also help you with setup some (and there's some user-posted information in the comments below that might help you troubleshoot a few things if you run into problems).
I'm currently trying to get this working on my own 6.x site... I had it working perfectly in 5.x, but for my particular use case it doesn't want to cooperate this time around. It doesn't like the logic I'm trying to use, evidently!
The Devel module's Devel Node Access functions will help you to troubleshoot some access control problems you run into. I don't know how much help I would be, but if you run into any issues send me a message and I'll see if I've run into them already. Good luck!