<% if (ctx.session.sessionUser.accountId === ctx.tender.data.user_id && stages.length > 0 && (materials.length === 0 || materials[0].status === auditConst.status.checked)) { %> <% } %> <% if (materials && materials.length >= 1) { %> <% } %> <% if (ctx.session.sessionUser.accountId === ctx.tender.data.user_id || ctx.session.sessionUser.is_admin) { %> <% } %>