reworked how 'compactible event types' are defined

This commit is contained in:
adisposkofh
2026-04-23 11:43:25 +02:00
parent e57846566e
commit 2eb58e3346
4 changed files with 99 additions and 67 deletions
@@ -48,6 +48,7 @@ class LvPlan extends FHCAPI_Controller
'getStudiengaenge' => self::PERM_LOGGED,
'getLehrverband' => self::PERM_LOGGED,
'permissionOtherLvPlan' => self::PERM_LOGGED,
'compactibleEventTypes' => self::PERM_LOGGED,
]);
$this->load->library('LogLib');
@@ -393,6 +394,16 @@ class LvPlan extends FHCAPI_Controller
$this->terminateWithSuccess($this->permissionlib->isBerechtigt('basis/other_lv_plan'));
}
/**
* get event types which can be compacted in lv plan display
*
* @return void
*/
public function compactibleEventTypes()
{
$this->terminateWithSuccess(["lehreinheit", "reservierung"]);
}
/**
* fetch moodle events
*