mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Don't allow canceling of Stg Abmeldungen
This commit is contained in:
@@ -1545,7 +1545,16 @@ class AntragLib
|
||||
*/
|
||||
public function isEntitledToCancelAntrag($antrag_id)
|
||||
{
|
||||
return $this->isOwnAntrag($antrag_id);
|
||||
$result = $this->_ci->StudierendenantragModel->load($antrag_id);
|
||||
if (!hasData($result))
|
||||
return false;
|
||||
$antrag = current(getData($result));
|
||||
|
||||
if ($antrag->typ != Studierendenantrag_model::TYP_ABMELDUNG_STGL)
|
||||
return $this->isOwnAntrag($antrag_id);
|
||||
|
||||
// TODO(chris): assistenz can not cancel - should they be able to?
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user