浏览代码

[Web] Fix deletion of admin user

André Peters 6 年之前
父节点
当前提交
b94595ce0c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/web/inc/functions.admin.inc.php

+ 1 - 1
data/web/inc/functions.admin.inc.php

@@ -205,7 +205,7 @@ function admin($_action, $_data = null) {
     case 'delete':
       $usernames = (array)$_data['username'];
       foreach ($usernames as $username) {
-        if ($_SESSION['mailcow_cc_role'] == $username) {
+        if ($_SESSION['mailcow_cc_username'] == $username) {
           $_SESSION['return'][] = array(
             'type' => 'warning',
             'log' => array(__FUNCTION__, $_action, $_data_log),