I have task as user types
anonymous,authenticate,employee then how to differentiate the registered user is authenticate or employee.Please help me.

Comments

dman’s picture

Status: Active » Closed (fixed)
global $user;
print_r($user->roles);

This is a development question, not a Drupal bug. Ask in the forum, explaining what you actually want to do, not here.