MAPG-117 show the edit button only if user is admin

This commit is contained in:
Bence Pőcze 2020-06-10 20:20:36 +02:00
parent 2725754504
commit ad818af543

View File

@ -31,7 +31,9 @@
<p class="small justify marginTop"><?= $map['description'] ?></p>
</div>
<a class="button fullWidth" href="game/<?= $map['id']; ?>" title="Play map '<?= $map['name'] ?>'">Play this map</a>
<?php if ($isAdmin): ?>
<a class="button yellow fullWidth marginTop" href="admin/mapEditor/<?= $map['id']; ?>" title="Edit map '<?= $map['name'] ?>'">Edit this map</a>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php if (count($maps) < 4): ?>