Closed (fixed)
Project:
Taxonomy Access Control
Version:
master
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2005 at 21:22 UTC
Updated:
17 Jan 2006 at 21:39 UTC
With the taxonomy_access module, would it be possible to increase its functionality so that users only see taxonomy terms allowed for their user role when "creating content"? This would make the setup much more useable and node creation far more simple. How hard would this be? I have a php book sitting on the table, but this seems like it might be a little complex.
Comments
Comment #1
pyromanfo commentedDid you try this? It should already be working this way. Make sure you patched taxonomy.module.
Comment #2
bomarmonk commentedAh yes... you are right. Is there a way to get the vocabularies that are not used by a user to also be hidden? Right now it is just the terms, right? Also even a required taxonomy that is the default for the user still gives a choice between "none" and "default term." In the event there is only one term accessible to a user in a vocabulary (and required) could the taxonomy module simply display the term in a greyed-out box, for example? This is only minor, so I'll rest the priority to reflect this... but keep this open for your response. Thanks for answering my previous question, which I should have been able to answer myself if I had my head on straight. Thanks again.
Comment #3
cprice commentedWhen I was testing taxonomy_access, I was concerned with this issue as well. This is basically an issue with Drupal. Drupal isn't really designed to deny content creation based on permissions. The node permissions system is only for existing nodes. Also, note that the node permissions system lacks a create permission.
So, I think a fix would be intrusive to the Drupal core to support additional functionality.
Now greying out the box probably wouldn't be hard to implement, I believe. But, you still have a problem if a user has no access to any term in the vocabulary. The user can still create content, but will have no term is assigned. This is really a limitation of the node permission system, and the ability to modify the Drupal core to allow a limited create permission system.
Note that when I am talking about the Drupal core, I am refering to modules that are required as well as the non-module (includes) parts of Drupal.
Comment #4
orangechicken commentedIs this true? You can't hide taxonomy terms from users who don't have permission to create "in" them (according to TAC)?
It seems to be the case: I've installed TAC (made sure the patch was applied), set up permissions to what I think are correct, and the people that should not have access to create content in a particular term are still able to do so.
Comment #5
orangechicken commentedWell, mostly forget what I said - I had a partially botched install. The term_access table got into a weird state and even though I was showing no 'create' permissions in the admin forms the database wasn't getting updated. So I emptied the database and grabbed v1.44 of taxonomy_access.module and the post-patch taxonomy.module from this thread: http://drupal.org/node/26480
Now things are working fine and only the taxonomy terms that the user has create access to show up in the creation form.
-Dave
Comment #6
keve commented