Added logic to download and open a document

Signed-off-by: cris-technikum <[email protected]>
This commit is contained in:
Cris
2021-01-14 14:13:17 +01:00
committed by cris-technikum
parent 5af134312c
commit b57a3ec90f
2 changed files with 55 additions and 0 deletions
@@ -191,6 +191,20 @@ class requestAnrechnung extends Auth_Controller
}
}
/**
* Download and open uploaded document (Nachweisdokument).
*/
public function download()
{
$dms_id = $this->input->get('dms_id');
if (!is_numeric($dms_id))
{
show_error('Wrong parameter');
}
$this->dmslib->download($dms_id);
}
/**
* Retrieve the UID of the logged user and checks if it is valid