public function hasPermission($sTitle)
 {
     if ($this->isSuperUser()) {
         return true;
     }
     global $modx;
     $bResult = $modx->hasPermission($sTitle);
     if (!$bResult) {
         $aGroups = $modx->getUserDocGroups(true);
         if ($aGroups != null) {
             foreach ($aGroups as $sGroup) {
                 //echo "Doc Group: " . $sGroup . " vs " . $sTitle . "\r\n<br/>";
                 FlexiLogger::Debug(__METHOD__, "Doc Group: " . $sGroup . " vs " . $sTitle);
                 if (strtolower(trim($sGroup)) == strtolower(trim($sTitle))) {
                     $bResult = true;
                     break;
                 }
             }
         } else {
             //echo "doc group empty";
             FlexiLogger::debug(__METHOD__, "Doc Group empty");
         }
     }
     return $bResult;
 }