(OG) Example function to detect User's roles? Using Open Atrium 6.x-1.2 (Organic Groups 6.x-2.3 inc it's access control.mod), would someone be as kind to provide an example function that would detect the current user's role? It's my understanding OG overrides the standard Drupal permissions page. My end goal is to allow certain roles access to groups they don't specifically have membership (eg: Executive) for a custom OA/OG access control policy/module.

Would some implementation of Rules be possible here?

My skill level: no PHP but just started studying module dev
To test whether the currently-logged-in User has a specific Role, you can do this:

global $user;
if (in_array('Executive', $user-&gt;roles)) {
  drupal_set_message("I have the 'Executive' role.");
}