implemented permission for viewing other users' lv plans

This commit is contained in:
adisposkofh
2026-04-13 15:44:09 +02:00
parent f1c3c8296f
commit 7daaf79fcc
12 changed files with 263 additions and 188 deletions
@@ -47,7 +47,7 @@ class LvPlan extends FHCAPI_Controller
'fetchFerienEvents' => self::PERM_LOGGED,
'getStudiengaenge' => self::PERM_LOGGED,
'getLehrverband' => self::PERM_LOGGED,
'permissionOtherLvPlan' => self::PERM_LOGGED,
]);
$this->load->library('LogLib');
@@ -378,6 +378,16 @@ class LvPlan extends FHCAPI_Controller
return $this->terminateWithSuccess($data);
}
/**
* Checks if the current user has permission to view other users' timetables
*
* @return void
*/
public function permissionOtherLvPlan()
{
$this->terminateWithSuccess($this->permissionlib->isBerechtigt('basis/other_lv_plan'));
}
/**
* fetch moodle events
*