I set up flag that can be flagged and unflagged by role that is dynamically applied to user while he is in OG context by OG User Roles module. Flag checks user roles against user object from $GLOBALS. It would be nice if user roles would be checked somewhere before theming a link.

Comments

mooffie’s picture

I don't know that module. Looking at $GLOBALS['user'] isn't a sin (where else should we look?). Have you tried asking for help in that module's issue queue?

henrijs.seso’s picture

Category: bug » feature
Priority: Normal » Minor

Yes, they are not sinning too, it's just, i dont know :) I found workaround #951972: roles lost after hook_menu (flag module, maybe Voting API and others) so this is now low priority here. But understanding issue is important, we all learn all the time.

mooffie’s picture

Status: Active » Closed (works as designed)

I found workaround #951972

I see that a user there (Dave) provides a fix for OGUR. It seems that they *do* sin ;-)