Closed (fixed)
Project:
Vocabulary Permissions
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2007 at 09:28 UTC
Updated:
25 Sep 2007 at 06:44 UTC
Hi,
I installed the vocabperms module, switched it on, and tried to restrict two free-tagging vocabularies to our editor and admin roles.
So it's:
anonymous: view only
authenticated: view only
editor: edit and view
admin: edit and view
However authenticated users can still use the freetagging vocabulary with no visible change at all. Any help much appreciated!
Comments
Comment #1
catchComment #2
Greg Go commentedThe problem seems to be restricted to freetagging vocabularies.
Comment #3
modul commentedSame problem here. I have a content type in which all anonymous visitors to my site can write a text. Later on, these texts are reviewed by, well, reviewers. They, the reviewers, and not the original contributors, are the ones whom I would like to be the only ones able to access the taxonomy terms. I was hoping VocabPerms would do this. In VocabPerms, I set the rights for Anonymous to "none". Alas, it doesn't appear to be working. Anyone visiting can still see and use the taxonomy. It also happens to be a freetagging situation.
This is what VocabPerms is supposed to be doing, or am I missing something here? And if it is, it doesn't seem to work...
Ludo
Comment #4
catchYeah it seems like freetagging forms have a different id to the select forms, so the module doesn't catch them. Should be a simple fix if I knew how to find that!
Comment #5
catchBumping to critical since this is essentially half the functionality of the module.
So the relevant bit of a select form for taxonomy looks like:
for freetagging:
So in the module, the references to ($form['taxonomy']) need this as well: ($form['taxonomy']['tags'])
Should be a pretty simple patch for someone who understands it more than me! Since I'm only using this for freetagging, I'm going to try hacking it in and check it works for now.
Comment #6
catchOK so this is a modified vocabperms_node_form_remove function that ONLY works for freetagging vocabularies. I don't yet have an idea how to do both at the same time. If you're only using it to restrict freetagging, it's a three line change to get working, and won't conflict with it getting fixed properly later. The only change is : ($form['taxonomy']) becomes ($form['taxonomy']['tags'])
Not a real patch, but marking as needs work presumptously because, well, it needs work.
Comment #7
douggreen commented@catch, Thanks for reporting this and debugging it. I've checked in a fix.
Comment #8
modul commentedThanks, Cach, that did it!! I wish I could just dig down in the code like that to fix a bug/feature like this by adding a few thingies... Thanks!!
Ludo
Comment #9
catchThanks Doug, that's service for ya.
Comment #10
douggreen commentedProposed patch get looked at quicker. Thanks for doing the debugging for me!
Comment #11
(not verified) commented