added new permissions and changed handling of ADBWohneinheitController.php/duplicate

This commit is contained in:
Luca Haid
2025-06-12 10:01:01 +02:00
parent 3050603474
commit 528f3680d2
7 changed files with 91 additions and 26 deletions
+3
View File
@@ -179,6 +179,9 @@
<a class="btn btn-secondary" href="<?=self::getUrl("AddressDB", "", ["resetFilter" => 1])?>">Filter zurücksetzen</a>
<button type="submit" formaction="<?=self::getUrl("AddressDB", "export")?>" id="export-button" class="btn btn-outline-success ml-2"><i class="fas fa-download"></i> CSV-Export Gebäude</button>
<button type="submit" formaction="<?=self::getUrl("AddressDB", "exportHomes")?>" id="export-button-homes" class="btn btn-outline-success ml-2"><i class="fas fa-download"></i> CSV-Export Homes</button>
<?php if($me->can("ADBExtended")): ?>
<a class="btn btn-outline-secondary ml-2" href="<?=self::getUrl("ADBWohneinheit", "duplicate")?>"><i class="fas fa-fw fa-copy"></i> Doppelte Homes</a>
<?php endif; ?>
</div>
</div>
</form>
+9
View File
@@ -449,6 +449,15 @@ $siteTitle = "Benutzer";
anzeigen</label>
</div>
</div>
<div class="col-4">
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" name="can[ADBExtended]"
id="can_ADBExtended"
value="1" <?=($user && $user->can("ADBExtended")) ? "checked='checked'" : ""?> />
<label for="can_ADBExtended" class="form-check-label">Address-DB erweitert</label>
</div>
</div>
</div>
<hr/>