diff options
| author | Murtaza Sultani <sultani@data-quest.de> | 2025-05-08 15:41:26 +0200 |
|---|---|---|
| committer | Murtaza Sultani <sultani@data-quest.de> | 2025-05-08 15:41:26 +0200 |
| commit | cd9c78edb7d42a17a1989ba7478e6ee0b7f0e38b (patch) | |
| tree | 9cd18a0211d73c91e420b54939aacca767fadc6e /app/views | |
| parent | 0ec8850969175e6ed7fc8e5e3c451668620252b3 (diff) | |
Update the booking_type select inputissue-5595
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/resources/booking/_add_edit_form.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/resources/booking/_add_edit_form.php b/app/views/resources/booking/_add_edit_form.php index 5ba611a..90dfbc0 100644 --- a/app/views/resources/booking/_add_edit_form.php +++ b/app/views/resources/booking/_add_edit_form.php @@ -33,12 +33,14 @@ : '' ?>> <?= _('Reservierung') ?> </option> - <option value="<?= ResourceBooking::TYPE_LOCK ?>" - <?= $booking_type == ResourceBooking::TYPE_LOCK - ? 'selected="selected"' - : '' ?>> - <?= _('Sperrbuchung') ?> - </option> + <?php if($is_resource_admin): ?> + <option value="<?= ResourceBooking::TYPE_LOCK ?>" + <?= $booking_type == ResourceBooking::TYPE_LOCK + ? 'selected="selected"' + : '' ?>> + <?= _('Sperrbuchung') ?> + </option> + <? endif ?> </select> </fieldset> </div> |
