Only admins can modify working plan exceptions at the moment

This commit is contained in:
Alex Tselegidis 2020-11-16 11:09:48 +02:00
parent bbaac53308
commit af5ddfaac4

View file

@ -82,7 +82,8 @@
<i class="far fa-plus-square mr-2"></i> <i class="far fa-plus-square mr-2"></i>
<?= lang('unavailable') ?> <?= lang('unavailable') ?>
</a> </a>
<a class="dropdown-item" href="#" id="insert-working-plan-exception"> <a class="dropdown-item" href="#" id="insert-working-plan-exception"
<?= $this->session->userdata('role_slug') !== 'admin' ? 'hidden' : '' ?>>
<i class="far fa-plus-square mr-2"></i> <i class="far fa-plus-square mr-2"></i>
<?= lang('working_plan_exception') ?> <?= lang('working_plan_exception') ?>
</a> </a>