private function isAffiliate(){ $role = $this->user->getRoleId(); if($role=='pap_merc'){ return false; }else if($role=='pap_aff'){ return true; } throw new Exception('Unknown RoleTypeId '.Gpf_Session::getAuthUser()->getUserId()); }