From 551b4faa9cd81036f4fb34477eaac635547351f2 Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 23 Sep 2022 14:36:21 +0800 Subject: [PATCH] * Fix bug #27583. --- module/common/model.php | 2 +- module/story/view/view.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index dc5bf20494..82ffa26931 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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; } diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index e848e44177..995ecf910b 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -63,7 +63,7 @@ $tab = 'execution'; } ?> - product}&branch={$story->branch}&moduleID={$story->module}&$otherParam&bugID=0&planID=0&todoID=0&extra=&type=$story->type", " " . $lang->story->create, '', "class='btn btn-primary' data-app='$tab'"); ?> + product}&branch={$story->branch}&moduleID={$story->module}&$otherParam&bugID=0&planID=0&todoID=0&extra=&storyType=$story->type", " " . $lang->story->create, '', "class='btn btn-primary' data-app='$tab'"); ?>