I added this line in hotspot view to enable user to edit hotspot from hotspot itself. What do you think of it?
<?php if (!$currentUser->guest) : ?>
<?php if ($currentUser->authorise('core.edit.own', 'com_hotspots') && $currentUser->get('id') == $this->hotspot->created_by) : ?>
<div class="row text-center">
<a class="btn btn-lg btn-danger" href="/<?php echo JRoute::_('index.php?option=com_hotspots&task=form.edit&id=' . $this->hotspot->id); ?>">
<?php echo JText::_('JACTION_EDIT'); ?>
</a>
</div>
<?php endif; ?>
<?php endif; ?>
Regards
Michel