Commit 584aa30b authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Le bouton "Configuration et maintenance" ne s'affiche plus si on a pas le...

Le bouton "Configuration et maintenance" ne s'affiche plus si on a pas le privilège global (évite l'écran d'erreur d'accès)
parent 9697eb1c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ if(
        </li>
        <?php endif; ?>

        <?php if( $this->grant()->privilege(\Oscar\Provider\Privileges::MAINTENANCE_MENU_ADMIN) ):?>
        <li role="presentation" class="dropdown-header">
            <i class="icon-cog"></i>
            Configuration
@@ -115,6 +116,7 @@ if(
                <?= $this->oscarText("Configuration et maintenance") ?>
            </a>
        </li>
        <?php endif; ?>
    </ul>
</li>
<?php endif; ?>
 No newline at end of file