Closed (fixed)
Project:
Hierarchical Select
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2012 at 22:49 UTC
Updated:
16 Sep 2013 at 12:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
skizzo commentedComment #2
alan d. commentedI was helping to fix an issue in Domain Taxonomy and the noticed that term access was being bypassed. This should be tagged with term_access
One example query is:
see taxonomy_get_tree() for an example.
Comment #3
wim leersSo something like:
? Since you're actually using this, I'd appreciate it if you could roll a patch based on the above, test it and report it back :)
Comment #4
alan d. commentedI was helping out with Domain Taxonomy which is vital for a project that we are working on, and there was an issue there that suggested that it had this issue. So 2 hours solid debugging failed to find issues there, I tracked the issue down to this module instead.
The parent field looks wrong above, shouldn't this be:
Comment #5
wim leersYou're absolutely right!
Comment #6
zechola commentedI'm running into this issue, too, but changes don't seem to be in the dev release. Would anyone like to help roll up a patch?
Comment #7
zechola commentedI made the above changes and created a patch. Please review it. Ideally we'll add more for the other queries but this is a fix for this particular issue.
Comment #8
skizzo commentedCan't say about "other queries", but after applying above patch to 7.x-3.0-alpha5+9-dev the problem is gone.
Thanks to Alan D. and zechola (sorry Wim, I couldn't roll a patch as I have no coding experience whatsoever...)
Comment #9
wim leersThis is not really a bug, neither a security problem. The problem is that the term_access module cannot enforce anything because it is not part of the Drupal core taxonomy module. It cannot be regarded as a bug, only as a feature request.
That being said, #7 was confirmed by #8, so I've committed it :)
Thanks!
http://drupalcode.org/project/hierarchical_select.git/commit/a79c119