Merge pull request #1010 from pytesNET/master

Enable adminSidebar() also for Editors
This commit is contained in:
Diego Najar 2019-03-29 14:47:40 +01:00 committed by GitHub
commit 30a4354207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -57,7 +57,11 @@
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>"><?php $L->p('About') ?></a> <a class="nav-link" href="<?php echo HTML_PATH_ADMIN_ROOT.'about' ?>"><?php $L->p('About') ?></a>
</li> </li>
<?php endif; ?>
<?php if (checkRole(array('admin', 'editor'),false)): ?>
<?php <?php
if (!empty($plugins['adminSidebar'])) { if (!empty($plugins['adminSidebar'])) {
echo '<li class="nav-item"><hr></li>'; echo '<li class="nav-item"><hr></li>';
@ -68,6 +72,7 @@
} }
} }
?> ?>
<?php endif; ?> <?php endif; ?>
<li class="nav-item mt-5"> <li class="nav-item mt-5">