* Check priv except pivot-show.

This commit is contained in:
宋辰轩
2023-03-29 16:04:24 +08:00
parent d65eda5362
commit d959fa669f
+1 -1
View File
@@ -20,7 +20,7 @@ class pivotZen extends pivot
if(!$group) $group = $this->getDefaultGroup($dimension);
if(!$module || !$method) list($module, $method, $params) = $this->getDefaultMethod($dimension, $group);
if(!empty($module) && !empty($method) && !common::hasPriv($module, $method)) $this->loadModel('common')->deny('pivot', $method);
if(!empty($module) && !empty($method) && $method != 'show' && !common::hasPriv($module, $method)) $this->loadModel('common')->deny('pivot', $method);
$this->view->sidebar = $this->getSidebar($dimension, $group, $module, $method, $params);
$this->view->dimension = $dimension;