Skip to content

Commit

Permalink
Fis disable per institution upload limits. (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung committed Sep 26, 2024
1 parent 7956366 commit a2a30a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<legend><?php echo __('Upload a %1%', ['%1%' => mb_strtolower(sfConfig::get('app_ui_label_digitalobject'))]); ?></legend>

<?php if (null == $repository || -1 == $repository->uploadLimit || floatval($repository->getDiskUsage() / pow(10, 9)) < floatval($repository->uploadLimit)) { ?>
<?php if (null == $repository || -1 == $repository->uploadLimit || floatval($repository->getDiskUsage() / pow(10, 9)) < floatval($repository->uploadLimit) || -1 == sfConfig::get('app_upload_limit')) { ?>

<?php echo $form->file->renderRow(); ?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</h2>
<div id="upload-collapse" class="accordion-collapse collapse show" aria-labelledby="upload-heading">
<div class="accordion-body">
<?php if (null == $repository || -1 == $repository->uploadLimit || floatval($repository->getDiskUsage() / pow(10, 9)) < floatval($repository->uploadLimit)) { ?>
<?php if (null == $repository || -1 == $repository->uploadLimit || floatval($repository->getDiskUsage() / pow(10, 9)) < floatval($repository->uploadLimit) || -1 == sfConfig::get('app_upload_limit')) { ?>

<?php echo render_field($form->file); ?>

Expand Down

0 comments on commit a2a30a3

Please sign in to comment.