From fdf35bcce8700c0a6cb1aeabc02ad10594b24268 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Mon, 17 Aug 2020 09:23:14 +0800 Subject: [PATCH] * Fix bug #2961. --- module/action/model.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index a62fe1c5ea..9ad34a1a44 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -856,12 +856,6 @@ class actionModel extends model if(strpos($action->objectLabel, '|') !== false) { list($objectLabel, $moduleName, $methodName, $vars) = explode('|', $action->objectLabel); - $action->objectLink = ''; - if(!common::hasPriv($moduleName, $methodName)) - { - unset($actions[$i]); - continue; - } $action->objectLink = helper::createLink($moduleName, $methodName, sprintf($vars, $action->objectID)); if($action->objectType == 'user') $action->objectLink = helper::createLink($moduleName, $methodName, sprintf($vars, $action->objectName));