diff --git a/module/story/model.php b/module/story/model.php index 1dd28f2a3a..53a8d1615e 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -4533,14 +4533,8 @@ class storyModel extends model switch($id) { case 'id': - if($canBatchAction) - { - echo html::checkbox('storyIdList', array($story->id => '')) . html::a($storyLink, sprintf('%03d', $story->id), '', "data-app='$tab'"); - } - else - { - printf('%03d', $story->id); - } + if($canBatchAction) echo html::checkbox('storyIdList', array($story->id => '')); + echo $canView ? html::a($storyLink, sprintf('%03d', $story->id), '', "data-app='$tab'") : sprintf('%03d', $story->id); break; case 'order': echo ""; diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 9cdfc3dd9c..9877965732 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -7129,7 +7129,7 @@ class upgradeModel extends model { if(empty($this->config->URAndSR)) return false; - $sql = "REPLACE INTO zt_grouppriv SELECT `group`,'requirement' as 'module',`method` FROM `zt_grouppriv` WHERE `module` = 'story' AND `method` in ('create', 'batchEdit', 'edit', 'export', 'delete', 'view', 'change', 'review', 'batchReview', 'recall', 'close', 'batchClose', 'assignTo', 'batchAssignTo', 'activate', 'report', 'linkStory', 'batchChangeBranch', 'batchChangeModule', 'linkStories', 'batchEdit')"; + $sql = "REPLACE INTO zt_grouppriv SELECT `group`,'requirement' as 'module',`method` FROM `zt_grouppriv` WHERE `module` = 'story' AND `method` in ('create', 'batchEdit', 'edit', 'export', 'delete', 'view', 'change', 'review', 'batchReview', 'recall', 'close', 'batchClose', 'assignTo', 'batchAssignTo', 'activate', 'report', 'linkStory', 'batchChangeBranch', 'batchChangeModule', 'linkStories', 'batchEdit', 'import', 'exportTemplate')"; $this->dbh->exec($sql); return true; }