Revert "[Web] Mailbox create/edit check if unlimited quota available (#3813)" (#3815)

This reverts commit c1405f5507.
This commit is contained in:
André Peters
2020-10-19 08:53:22 +02:00
committed by GitHub
parent c1405f5507
commit 4817de6d27
2 changed files with 3 additions and 12 deletions

View File

@@ -592,13 +592,8 @@ if (isset($_SESSION['mailcow_cc_role'])) {
<br><span id="quotaBadge" class="badge">max. <?=intval($result['max_new_quota'] / 1048576)?> MiB</span>
</label>
<div class="col-sm-10">
<?php
$quotaMin = ((!isset($_SESSION['acl']['unlimited_quota']) || $_SESSION['acl']['unlimited_quota'] != "1") && intval($result['quota']) > 0) ? 1 : 0;
?>
<input type="number" name="quota" style="width:100%" min="<?=$quotaMin?>" max="<?=intval($result['max_new_quota'] / 1048576);?>" value="<?=intval($result['quota']) / 1048576;?>" class="form-control">
<?php if($quotaMin === 0): ?>
<input type="number" name="quota" style="width:100%" min="0" max="<?=intval($result['max_new_quota'] / 1048576);?>" value="<?=intval($result['quota']) / 1048576;?>" class="form-control">
<small class="help-block">0 = ∞</small>
<?php endif; ?>
</div>
</div>
<div class="form-group">