From c1e4278e71fac1f9b86503d5a93e7db34ef359a7 Mon Sep 17 00:00:00 2001 From: Cris Date: Tue, 13 Oct 2020 15:45:37 +0200 Subject: [PATCH] Changed permission denying - text in 'Lehrauftrag bestellen' If a permission is correctly set, but the permission is restricted on organisational units Department or Kompetenzfeld, the error-text gives now meaningful information about the abort. Signed-off-by: Cris --- application/controllers/lehre/lehrauftrag/Lehrauftrag.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/lehre/lehrauftrag/Lehrauftrag.php b/application/controllers/lehre/lehrauftrag/Lehrauftrag.php index b7140c7c3..8a096338e 100644 --- a/application/controllers/lehre/lehrauftrag/Lehrauftrag.php +++ b/application/controllers/lehre/lehrauftrag/Lehrauftrag.php @@ -92,7 +92,8 @@ class Lehrauftrag extends Auth_Controller // Retrieve studiengaenge the user is entitled for to populate studiengang dropdown if (!$studiengang_kz_arr = $this->permissionlib->getSTG_isEntitledFor(self::BERECHTIGUNG_LEHRAUFTRAG_BESTELLEN)) { - show_error('Fehler bei Berechtigungsprüfung'); + show_error('Keine Studiengänge gefunden.
+ Es muss eine passende Organisationseinheit hinterlegt werden.
'); } // If studiengang_kz get param was set, check against entitled stg