30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-26 09:42:34 +00:00

Remove access check because it is handled inside modal already

This commit is contained in:
Tuan Pham Ngoc 2021-08-14 17:40:26 +07:00
parent 19c67005f0
commit a25ea580fb

View File

@ -70,10 +70,6 @@ $listDirn = $this->escape($this->state->get('list.direction'));
<?php else : ?> <?php else : ?>
<ul class="category list-unstyled"> <ul class="category list-unstyled">
<?php foreach ($this->items as $i => $item) : ?> <?php foreach ($this->items as $i => $item) : ?>
<?php // Shouldn't this be checked in the model?The pagination will be affected
if (in_array($item->access, $this->user->getAuthorisedViewLevels())) : ?>
<?php <?php
// Shouldn't this be only for users with admin rights? // Shouldn't this be only for users with admin rights?
// @ToDo: what is the difference -class system-unbublished? // @ToDo: what is the difference -class system-unbublished?
@ -104,12 +100,8 @@ $listDirn = $this->escape($this->state->get('list.direction'));
<?php // Compute the correct link ?> <?php // Compute the correct link ?>
<?php $menuclass = 'category' . $this->pageclass_sfx; ?> <?php $menuclass = 'category' . $this->pageclass_sfx; ?>
<?php $link = $item->link; ?> <?php $link = $item->link; ?>
<?php $width = $item->params->get('width'); ?> <?php $width = $item->params->get('width', 600); ?>
<?php $height = $item->params->get('height'); ?> <?php $height = $item->params->get('height', 500); ?>
<?php if ($width == null || $height == null) : ?>
<?php $width = 600; ?>
<?php $height = 500; ?>
<?php endif; ?>
<?php if ($item->state == 0) : ?> <?php if ($item->state == 0) : ?>
<span class="badge bg-warning"><?php echo Text::_('JUNPUBLISHED'); ?></span> <span class="badge bg-warning"><?php echo Text::_('JUNPUBLISHED'); ?></span>
@ -197,7 +189,6 @@ $listDirn = $this->escape($this->state->get('list.direction'));
</div> </div>
</li> </li>
<?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>