/** * Checks if the user has an 'admin' role * * @return bool */ public function isAdmin($username) { require_once LIBS . 'UserInfo.php'; $userInfo = new UserInfo(); return $userInfo->isAdmin($this->db, $username); }