Minor adaptation to changed method isMitarbeiter()

This commit is contained in:
hainberg
2019-09-25 14:13:16 +02:00
parent 169ffbb568
commit 83dd828be7
@@ -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');
}