浏览代码

调整检查清单按钮可见性

ellisran 1 月之前
父节点
当前提交
6e0fc3d04a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/view/change/information.ejs

+ 1 - 1
app/view/change/information.ejs

@@ -15,7 +15,7 @@
                         </div>
                     </div>
                 </div>
-                <% if (ctx.change.readOnly && ctx.helper._.findIndex(ctx.change.auditors, { uid: ctx.session.sessionUser.accountId }) !== -1) { %>
+                <% if (ctx.change.readOnly && (ctx.helper._.findIndex(ctx.change.auditors, { uid: ctx.session.sessionUser.accountId }) !== -1 || ctx.session.sessionUser.is_admin)) { %>
                 <div class="d-inline-block ml-auto">
                     <a href="javascript: void(0);" class="btn btn-outline-primary btn-sm mr-2" id="checkAndChange">检查并更新变更清单</a>
                 </div>