Drupal 7 check logged in user has both roles in tpl file?
It would be simple as:

global $user;

if (in_array('administrator', array_values($user-&gt;roles)) &amp;&amp;  in_array('moderator', array_values($user-&gt;roles))) {
    // is admin
} else {
    // is not admin
}