From 50a96b3e4f6c0636556e12f6c5d6110a95f9b81d Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Tue, 13 Aug 2024 14:20:40 +0200 Subject: [PATCH] Prestudent History: Wrong Function for Permissioncheck --- application/controllers/api/frontend/v1/stv/Prestudent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/api/frontend/v1/stv/Prestudent.php b/application/controllers/api/frontend/v1/stv/Prestudent.php index abbbb16d9..ef9aeb111 100644 --- a/application/controllers/api/frontend/v1/stv/Prestudent.php +++ b/application/controllers/api/frontend/v1/stv/Prestudent.php @@ -34,7 +34,7 @@ class Prestudent extends FHCAPI_Controller $this->checkPermissionsForPrestudent($prestudent_id, ['admin:r', 'assistenz:r']); } elseif ($this->router->method == 'getHistoryPrestudents') { $person_id = current(array_slice($this->uri->rsegments, 2)); - $this->checkPermissionsForPrestudent($person_id, ['admin:r', 'assistenz:r'], ['admin:r', 'assistenz:r']); + $this->checkPermissionsForPerson($person_id, ['admin:r', 'assistenz:r'], ['admin:r', 'assistenz:r']); } // Load Libraries