Active
Project:
Taxonomy Access Control
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 May 2013 at 14:25 UTC
Updated:
22 May 2013 at 14:25 UTC
Hello,
for drupal 6 I wrote a module, which assigned a role to the anonymous user (automaticaly, without login).
It was the hook_init and it worked with the taxonomy access control module.
function mymodule_init(){
if($GLOBALS['user']->uid==0){
$GLOBALS['user']->roles[17] = "my_role";
Now in the TAC-Version for Drupal 7, it does not work anymore.
It seems that TAC gets the roles before the hook_init is done.
Is this right?
In which hook I should insert my roles-assignement to get TAC to read it?
Thanks and regards
Adriana