Admin user can see subject in advance

This commit is contained in:
nemunaire 2022-09-05 21:46:53 +02:00
parent 1d9edfd4b6
commit 12a0777886

View File

@ -93,7 +93,7 @@
</table> </table>
{/await} {/await}
</div> </div>
{:else if new Date(w.start_availability) > new Date()} {:else if (!$user || !$user.is_admin) && new Date(w.start_availability) > new Date()}
<div class="alert alert-warning"> <div class="alert alert-warning">
<i class="bi bi-stopwatch-fill"></i> <i class="bi bi-stopwatch-fill"></i>
<strong>Ce travail n'est pas encore ouvert.</strong> Revenez plus tard&nbsp;! <strong>Ce travail n'est pas encore ouvert.</strong> Revenez plus tard&nbsp;!