Proposal for a module: TAC fields
I'm considering developing a module to extend the functionality of TAC to role/field combinations. TAC works wonderfully for controlling access to whole nodes based on their taxonomy, but it's all-or-nothing; the module currently has no way of leveraging the per-field access control offered by Content Permissions.
I don't think the functionality belongs in TAC itself, as my proposed module is an additional layer of complexity that's specific to CCK content types.
Read moreUsing Execute PHP to set Permissions in TAC
require_once(drupal_get_path('module', 'taxonomy_access') . "/taxonomy_access_admin.inc");
function tgtbn($name) {
$db_result = db_query(db_rewrite_sql("SELECT t.tid, t.* FROM {term_data} t WHERE LOWER(t.name) = LOWER('%s')", 't', 'tid'), trim($name));
$result = array();
while ($term = db_fetch_array($db_result)) {
$result[] = $term;
}
return $result;
}
$srch_name = "".$author->name."-".$node->title."";
$roles = _user_roles();
$role_id = array_search($srch_name, $roles);
if(!is_numeric($role_id)){echo "role id is not a number";}
Read moreComprehensive list of Content access modules and how to enable them to work together
I created a list of content permission modules that I have encountered with their weights on my system.
- Can we create a comprehensive list?
- How can they work together or should they. From your experience, what has been the worst and best combinations ?
- what effect does module weight have on implementation of access? is it true that if access is already granted, it will not be restricted by another module that comes into play later?
Weight/ Name/ Version/ Brief description
0 Content Permissions 6.x-2.x-dev Set field-level permissions for CCK fields.
(admin determines)
TAC and Views RSS
I have a situation to which I have developed a couple of solutions. However, colleagues believe that we are still missing something. I could use any input the community can share.
Plaftform: Drupal 5.14
Data Structure
- We have a large amount of published nodes in the form of news articles, reports, etc.
- Registered users purchase subscriptions and are given access to view the full body of certain nodes depending on what they have subscribed to. This is controlled through TAC.