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 @@ ...@@ -40,13 +40,15 @@
</ol> </ol>
<? endif ?> <? 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;"> <div class="center bordered" style="margin-top: 20px; margin-bottom: 20px;">
<a class="button" <? if ($url && $material['filename']) : ?>
href="<?= htmlReady($url) ?>" title="<?= _('Herunterladen') ?>" <a class="button"
download="<?= htmlReady($material['filename']) ?>"> href="<?= htmlReady($url) ?>" title="<?= _('Herunterladen') ?>"
<div class="filename"><?= _('Herunterladen') ?></div> download="<?= htmlReady($material['filename']) ?>">
</a> <div class="filename"><?= _('Herunterladen') ?></div>
</a>
<? endif ?>
<? if ($GLOBALS['perm']->have_perm("autor")) : ?> <? if ($GLOBALS['perm']->have_perm("autor")) : ?>
<a class="button" <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