I've tried both recommended releases, and both dev releases. error is the same.
I have 2 pages created with Views (6.x-3.x-dev) module, drupal 6.20, that use exposed taxonomy filters.
On both pages they are not displayed to anonymous and authenticated users. (when viewing node with user 1, exposed taxonomy filter displays records)
Both views don't use Forum vocabulary. each views uses different vocabulary and there are less then 10 terms in each vocab.
If Forum access module is disabled, the exposed filter is populated with taxonomy records for authenticated/anonymous users.
both views have no access restrictions, that's why I created the issue on Forum access issue list.
sorry if I'm missing something, please direct me to the right topic if this already has been answered. (I did search the issues for problem that would involve exposed taxonomy filters).
If I can help myself showing you some devel info, please direct me to a link to get more info.
I don't have installed any other access module, at least, I think so. :D
Thank you!
Comment | File | Size | Author |
---|---|---|---|
views-examp.png | 17.01 KB | janis_lv |
Comments
Comment #1
janis_lv CreditAttribution: janis_lv commentedin picture "tips" and "prioritate" are taxonomy filters.
Comment #2
salvisThis will be difficult. I've never encountered that problem and can't think of why it could happen.
My first idea is to install Devel module and enable its query logger. Find the queries that are different for user 1 and user 2. Try to identify those that are used for populating the term lists. Use a tool like phpMyAdmin to run them against your database and verify what they return.
Comment #3
janis_lv CreditAttribution: janis_lv commentedthank you for the reply, I'll try that and report back.
edit:
before I did devel part, I created another role, enabling few permissions to see, if I can identify the culprit, as user1 did see the taxonomy populated.
If for the the test role "node modules" - administer nodes permission is granted then the view was populated with taxonomy.
Then I copied the queries from devel to two different files, run a diff on them. except for the minor ms numbers and so on, I found only 3 differing entries.
queries from view with "administer nodes" permission:
and queries from the view when "administer nodes" permission is not granted:
1st query generates the entries for the missing taxonomy filter, 11 rows.
end with the administer node permission it returns output like:
| tid | vid | name | description | weight |
| 55 | 4 | css | | 0 |
1st query without the permission generates something like this:
| tid | vid | name | description | weight | tid | rid | grant_view | grant_update | grant_delete | grant_create | priority | acl_id | module | name | number | acl_id | uid |
| 55 | 4 | css | | 0 | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL |
Comment #4
salvisYou're getting the same rows, only with additional columns?
What happens if you replace the "*" with "t.*"? I wonder where that query comes from. Is it constructed by Views?
I suspect that the tid value which is NULL overwrites the tid value which is 55.
Comment #5
janis_lv CreditAttribution: janis_lv commentedYes, I get the same rows with additional columns.
If * replaced with t.* then both queries output the same. no additional columns.
| tid | vid | name | description | weight |
| 55 | 4 | css | | 0 |
Yes, the query comes from Views, exposed filter using taxonomy in a Page created by Views.
thank you for your help so far !
Comment #6
salvisThis needs to be fixed in Views.
This issue is likely to show up with other taxonomy access modules, too, e.g. tac_lite.
Comment #7
dawehnerI'm pretty sure there is a patch already in the issue queue.
This queries might have to be changed.
Comment #8
janis_lv CreditAttribution: janis_lv commentedsalvis, dereine, thank you for your help and info.
I'll browse trough the Views issue queue to find the patch.
edit: I'll try this patch, http://drupal.org/node/1040744
Comment #9
iamjon CreditAttribution: iamjon commentedBased on janis_lv's comment on #1040744: Only one term available in exposed "Taxonomy: Term ID" filter widget. marking this as a dupe and closing.