Skip to content
Snippets Groups Projects
Commit 847a2783 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "OER Campus: Nicht-herunterladbare Inhalte können nicht gelöscht werden"

parent af9ea7f0
No related branches found
No related tags found
No related merge requests found
......@@ -40,13 +40,15 @@
</ol>
<? endif ?>
<? if ($url && $material['filename']) : ?>
<? if (($url && $material['filename'] || (!$material['host_id'] && ($material->isMine() || $GLOBALS['perm']->have_perm("root"))))) : ?>
<div class="center bordered" style="margin-top: 20px; margin-bottom: 20px;">
<a class="button"
href="<?= htmlReady($url) ?>" title="<?= _('Herunterladen') ?>"
download="<?= htmlReady($material['filename']) ?>">
<div class="filename"><?= _('Herunterladen') ?></div>
</a>
<? if ($url && $material['filename']) : ?>
<a class="button"
href="<?= htmlReady($url) ?>" title="<?= _('Herunterladen') ?>"
download="<?= htmlReady($material['filename']) ?>">
<div class="filename"><?= _('Herunterladen') ?></div>
</a>
<? endif ?>
<? if ($GLOBALS['perm']->have_perm("autor")) : ?>
<a class="button"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment