|
@@ -53,14 +53,14 @@ class Update extends Page
|
|
|
$data['info_id'] = $this->info['id'];
|
|
|
if (!$func) {
|
|
|
$func = $this->getFunc('edit', '编辑', 1);
|
|
|
- if (!$func) {
|
|
|
+ if (!$func && $this->menu && $this->menu['show'] == 1) {
|
|
|
Dever::error('无操作权限');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} elseif (!$func) {
|
|
|
$func = $this->getFunc('update', '更新', 1);
|
|
|
- if (!$func) {
|
|
|
+ if (!$func && $this->menu && $this->menu['show'] == 1) {
|
|
|
Dever::error('无操作权限');
|
|
|
}
|
|
|
}
|