rabin hace 3 años
padre
commit
fbb4d39822
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/Database.php

+ 4 - 2
src/Database.php

@@ -1120,8 +1120,10 @@ class Database
                 $add_show = true;
             }
             $insert_state = Dever::load('manage/auth.oper', 4);
-            if ($insert_state && $add_show) {
-                $button[$add_name] = $info['add'];
+            if ($insert_state) {
+                if ($add_show) {
+                    $button[$add_name] = $info['add'];
+                }
             } elseif (isset($config['manage']['button']['新增'])) {
                 unset($config['manage']['button']['新增']);
             }