* Modify the code judgment logic.

This commit is contained in:
tianshujie
2022-03-25 10:58:04 +08:00
parent e36fdcb004
commit 67efa0838e
+1 -8
View File
@@ -358,14 +358,7 @@ class actionModel extends model
$method = $execution->type == 'kanban' ? 'kanban' : 'view';
if($name)
{
if($method == 'kanban' and isonlybody())
{
$action->extra = $name;
}
else
{
$action->extra = common::hasPriv('execution', $method) ? html::a(helper::createLink('execution', $method, "executionID=$action->execution"), $name) : $name;
}
$action->extra = (!common::hasPriv('execution', $method) or ($method == 'kanban' and isonlybody())) ? $name : html::a(helper::createLink('execution', $method, "executionID=$action->execution"), $name);
}
}
elseif($actionName == 'linked2project')