<?php
if (user_is_logged_in()) {
  global $user;
  $is_administrator = (in_array('WD Administrator', $user->roles) || in_array('WD Super Administrator', $user->roles)) ? true : false;
  if (arg(0) == 'administration' && $is_administrator) {
    return true;
  }
  else if (_deliver_is_team_manager($user->uid, arg(1)) || $is_administrator) {
    return true;
  }
}
?>