From 4d77c603d00e78733ee24aa273e6261fb59ef969 Mon Sep 17 00:00:00 2001 From: kindlm Date: Mon, 27 Jun 2016 11:29:10 +0200 Subject: [PATCH] =?UTF-8?q?Letzte=20Rolle=20nur=20durch=20admin=20l=C3=B6s?= =?UTF-8?q?chbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/student/studentDBDML.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/student/studentDBDML.php b/content/student/studentDBDML.php index 0578f7eb7..667cb39c7 100644 --- a/content/student/studentDBDML.php +++ b/content/student/studentDBDML.php @@ -932,10 +932,10 @@ if(!$error) { if($row = $db->db_fetch_object($result)) { - if($row->anzahl<=1) + if($row->anzahl<=1 && !$rechte->isBerechtigt('admin', null, 'suid')) { $return = false; - $errormsg = 'Die letzte Rolle darf nicht geloescht werden'; + $errormsg = 'Die letzte Rolle kann nur durch den Administrator geloescht werden'; $error = true; } }