Added permissions to internal BuildingApi

This commit is contained in:
Frank Schubert
2022-11-29 18:15:18 +01:00
parent 9a87c00abb
commit a15545d552
7 changed files with 36 additions and 7 deletions

View File

@@ -161,7 +161,7 @@
<div class="col-lg-10">
<select class="select2 form-control select2-multiple" name="addresstypes[]" id="addresstypes" multiple="multiple" data-placeholder="Choose ...">
<?php foreach(TT_ROLES as $role): ?>
<option value="<?=$role?>" <?=(array_key_exists($role, $address->types)) ? "selected='selected'" : ""?>><?=__($role)?></option>
<option value="<?=$role?>" <?=(is_array($address->types) && array_key_exists($role, $address->types)) ? "selected='selected'" : ""?>><?=__($role)?></option>
<?php endforeach; ?>
</select>
</div>