My setup:

* vocabulary "category" configured to control access
* vocabulary "version" not configured to control access
* content type with term reference fields to both vocabularies

Limiting access to terms of vocabulary "category" have no effect since taxonomy_tools_build_grants() sets "view"-grants to TRUE because terms in vocabulary "version" do not control access.

Proposed solution:
in taxonomy_tools_build_grants() "view"-grants should be set to FALSE if one of the used conditions say so. Currently it is set to TRUE if one condition grants access ("Grant" overrides "Deny").

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stBorchert’s picture

Status: Active » Needs review
FileSize
3.85 KB

Heres a rought patch for this.

SteffenR’s picture

FileSize
3.61 KB

Hi stborchert - i rerolled the patch against the latest DEV of the module :)

SteffenR

Shane Birley’s picture

Tested by am having trouble with rebuilding the access tables. It sticks about a 1/4 of the way through.

Shane Birley’s picture

I also noticed that the setting for the 403 is also seemingly ignored. Just looking into this to see if it is related to access tables.

Update: It must be related to the permissions failing, doesn't make sense otherwise.

Shane Birley’s picture

Applied patch to the dev and the permission rebuild still fails on line 261.

Shane Birley’s picture

Okay, I have beaten this around and set up a clean Drupal install and I still get the same batch issue.