|
@@ -1325,7 +1325,7 @@ class Database
|
|
|
|
|
|
# 列表页按钮
|
|
|
if ($button) {
|
|
|
- $result .= $this->list_button_show($button, $suffix);
|
|
|
+ $result .= $this->list_button_show($button, $suffix, $config);
|
|
|
}
|
|
|
/*
|
|
|
if (Dever::load('manage/auth.oper', 6) != false && isset($config['manage']['button'])) {
|
|
@@ -1391,7 +1391,7 @@ class Database
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
- private function list_button_show($button, $suffix = '')
|
|
|
+ private function list_button_show($button, $suffix = '', $config = array())
|
|
|
{
|
|
|
$result = '';
|
|
|
$refer = Dever::input('refer');
|
|
@@ -1405,11 +1405,9 @@ class Database
|
|
|
continue;
|
|
|
}
|
|
|
# 增加细分权限
|
|
|
- /*
|
|
|
- if (!Dever::load('manage/auth.check', $k, $this->menu_id)) {
|
|
|
+ if ($config && isset($config['manage']['auth']) && $config['manage']['auth'] && !Dever::load('manage/auth.check', $config['lang'] . '-' . $k, $this->menu_id)) {
|
|
|
continue;
|
|
|
}
|
|
|
- */
|
|
|
|
|
|
if (is_array($v)) {
|
|
|
if ($v[0] == 'location') {
|
|
@@ -1524,6 +1522,12 @@ class Database
|
|
|
|
|
|
$config = $this->config();
|
|
|
|
|
|
+ # 增加细分权限
|
|
|
+ /*
|
|
|
+ if ($config && isset($config['manage']['auth']) && $config['manage']['auth'] && !Dever::load('manage/auth.check', $config['lang'] . '-' . '搜索', $this->menu_id)) {
|
|
|
+ return '';
|
|
|
+ }*/
|
|
|
+
|
|
|
$result = '';
|
|
|
$top_result = '';
|
|
|
|
|
@@ -1831,7 +1835,7 @@ class Database
|
|
|
|
|
|
# 列表页按钮
|
|
|
if (isset($config['manage']['search_button'])) {
|
|
|
- $btn .= $this->list_button_show($config['manage']['search_button']);
|
|
|
+ $btn .= $this->list_button_show($config['manage']['search_button'], '', $config);
|
|
|
}
|
|
|
|
|
|
$result .= $btn . $node[1];
|
|
@@ -3023,6 +3027,7 @@ class Database
|
|
|
}
|
|
|
|
|
|
foreach ($config['manage']['_list']['value'] as $kj => $vj) {
|
|
|
+
|
|
|
$pj = false;
|
|
|
|
|
|
$h = '<span class="am-icon-pencil-square-o"></span>';
|
|
@@ -3047,6 +3052,11 @@ class Database
|
|
|
$vjn = $vj;
|
|
|
}
|
|
|
|
|
|
+ # 增加细分权限
|
|
|
+ if ($config && isset($config['manage']['auth']) && $config['manage']['auth'] && !Dever::load('manage/auth.check', $config['lang'] . '-' . $vjn, $this->menu_id)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
if ($oper == true) {
|
|
|
$this->manage_button = true;
|
|
|
if ($kj == 'delete') {
|