From 83dd828be780c532c0fbbe9f312d03c48e633805 Mon Sep 17 00:00:00 2001 From: hainberg Date: Wed, 25 Sep 2019 14:13:16 +0200 Subject: [PATCH] Minor adaptation to changed method isMitarbeiter() --- .../controllers/lehre/lehrauftrag/LehrauftragAkzeptieren.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/lehre/lehrauftrag/LehrauftragAkzeptieren.php b/application/controllers/lehre/lehrauftrag/LehrauftragAkzeptieren.php index 8f0fdda8c..2b9744cb8 100644 --- a/application/controllers/lehre/lehrauftrag/LehrauftragAkzeptieren.php +++ b/application/controllers/lehre/lehrauftrag/LehrauftragAkzeptieren.php @@ -63,8 +63,9 @@ class LehrauftragAkzeptieren extends Auth_Controller */ public function index() { - // Check if user is lector - if (!$this->MitarbeiterModel->isLektor($this->_uid)) + // Check if user is Mitarbeiter + $result = $this->MitarbeiterModel->isMitarbeiter($this->_uid); + if (!getData($result)) { show_error('Fehler bei Berechtigungsprüfung'); }