This commit is contained in:
liugang
2022-09-23 14:36:21 +08:00
parent 0e262990ce
commit 551b4faa9c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1574,7 +1574,7 @@ class commonModel extends model
$currentMethod = strtolower($method);
if(strpos($misc, 'data-app') === false) $misc .= ' data-app="' . $app->tab . '"';
if(!commonModel::hasPriv($module, $method, $object) and !in_array("$currentModule.$currentMethod", $config->openMethods)) return false;
if(!commonModel::hasPriv($module, $method, $object, $vars) and !in_array("$currentModule.$currentMethod", $config->openMethods)) return false;
echo html::a(helper::createLink($module, $method, $vars, '', $onlyBody), $label, $target, $misc, $newline);
return true;
}