|
@@ -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']['新增']);
|
|
|
}
|