rabin 3 سال پیش
والد
کامیت
e8d4af6cfb
1فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 9 1
      src/Database.php

+ 9 - 1
src/Database.php

@@ -65,6 +65,13 @@ class Database
      */
     private $chart = false;
 
+    /**
+     * manage_button
+     *
+     * @var array
+     */
+    private $manage_button = false;
+
     /**
      * __construct
      *
@@ -1856,7 +1863,7 @@ class Database
                     }
                 }
                 //if ((Dever::load('manage/auth.oper', 3) != false || Dever::load('manage/auth.oper', 5) != false) && isset($config['manage']['_list']['value'])) {
-                if (isset($config['manage']['_list']['value'])) {
+                if (isset($config['manage']['_list']['value']) && $this->manage_button) {
                     if ($type == 'layui') {
                         $layui = array
                         (
@@ -2734,6 +2741,7 @@ class Database
                 }
 
                 if ($oper == true) {
+                    $this->manage_button = true;
                     if ($kj == 'delete') {
                         $class = 'layui-btn layui-btn-danger';
                     } else {