/**
  * Test if the CopixUserProfile match the required Profile informations (if asked)
  */
 function beforeProcess(&$execParams)
 {
     if (isset($execParams->params['profile|profile'])) {
         if (is_a($execParams->params['profile|profile'], 'CapabilityValueOf')) {
             $ok = CopixUserProfile::valueOf($execParams->params['profile|profile']->path, $execParams->params['profile|profile']->cap) >= $execParams->params['profile|profile']->value;
         } else {
             if (is_a($execParams->params['profile|profile'], 'CapabilityValueIn')) {
                 $ok = CopixUserProfile::valueIn($execParams->params['profile|profile']->basePath, $execParams->params['profile|profile']->cap) >= $execParams->params['profile|profile']->value;
             } else {
                 $ok = true;
             }
         }
         if (!$ok) {
             $execParams = $this->config->noRightsExecParams;
             return false;
         }
         return true;
     }
     return true;
 }