diff --git a/public/js/app.js b/public/js/app.js index d3c30bc..82d288a 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -430,6 +430,8 @@ function renderRow(c) { }) : '—'; + const isEditor = state.user && (state.user.role === 'admin' || state.user.role === 'editor'); + const checkbox = isEditor ? `` : ``; @@ -437,8 +439,6 @@ function renderRow(c) { const statusBadge = printed ? 'Printed' : 'Unprinted'; - - const isEditor = state.user && (state.user.role === 'admin' || state.user.role === 'editor'); const actions = isEditor ? `` + ``