mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-06-17 13:32:21 +00:00
Remove access check because it is handled inside modal already
This commit is contained in:
parent
19c67005f0
commit
a25ea580fb
|
@ -70,10 +70,6 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||
<?php else : ?>
|
||||
<ul class="category list-unstyled">
|
||||
<?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
|
||||
// Shouldn't this be only for users with admin rights?
|
||||
// @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 $menuclass = 'category' . $this->pageclass_sfx; ?>
|
||||
<?php $link = $item->link; ?>
|
||||
<?php $width = $item->params->get('width'); ?>
|
||||
<?php $height = $item->params->get('height'); ?>
|
||||
<?php if ($width == null || $height == null) : ?>
|
||||
<?php $width = 600; ?>
|
||||
<?php $height = 500; ?>
|
||||
<?php endif; ?>
|
||||
<?php $width = $item->params->get('width', 600); ?>
|
||||
<?php $height = $item->params->get('height', 500); ?>
|
||||
|
||||
<?php if ($item->state == 0) : ?>
|
||||
<span class="badge bg-warning"><?php echo Text::_('JUNPUBLISHED'); ?></span>
|
||||
|
@ -197,7 +189,6 @@ $listDirn = $this->escape($this->state->get('list.direction'));
|
|||
</div>
|
||||
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user