protected function createBoxen()
 {
     $rollen = new Rolle();
     $rollen = $rollen->loadAll();
     foreach ($rollen as $rolle) {
         $text = '';
         if ($rolle->parent != '') {
             $text .= $rolle->parent . ' » ';
         }
         $this->addBox($rolle->id, $text . $rolle->ro_bezeichnung, $this->id . '[]', Security::hatBerechtigung($this->element, 0, $rolle->id));
     }
 }
 /**
  * Prüft, ob der aktuell angemeldete Benutzer berechtigt für diese Aktion ist
  * @return bool
  */
 public function isBerechtigt()
 {
     Logging::debug("Prüfe Berechtigung für {$this->name} : {$this->securityLevel}");
     if ($this->securityLevel === Action::LEVEL_ALL) {
         return true;
     } elseif ($this->securityLevel === Action::LEVEL_LOGGEDIN) {
         return Security::isAuthenticated();
     } elseif ($this->securityLevel === Action::LEVEL_CONFIG) {
         return Security::hatBerechtigung($this->getSecurityToken());
     } else {
         // TODO: Hier könnte man jetzt auch den Rückgriff auf
         // andere Module einbauen. Wäre kein Problem
         $module = $this->module;
         $action = $module->getAction($this->securityLevel);
         if ($action !== null) {
             return $action->isBerechtigt();
         }
     }
     return false;
 }