Commit 7d0311f3 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Ménage infra

parent ea10d295
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for code/test7.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ $nav = $container->get(\Framework\Navigation\Navigation::class);


\UnicaenApp\Util::topChrono();
$pages = $nav->getHome()->getVisiblePages();
$pages = $nav->home->getVisiblePages();
\UnicaenApp\Util::topChrono();

//dd($container->get('config')['bjyauthorize']['guards']['UnicaenPrivilege\Guard\PrivilegeController']);
+8
Changes for code/test9.php: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,3 +5,11 @@
 * @var $container  \Psr\Container\ContainerInterface
 * @var $io         \Symfony\Component\Console\Style\SymfonyStyle
 */

$s = $container->get(\Framework\Navigation\Navigation::class);

dump($s->home->getPages());

$pages = $s->home->getPage('intervenant');

dd($pages);
 No newline at end of file
+1 −1
Changes for config.local.php.default: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ return [
         * exemple si le login 'lecluse' est autorisé à usurper, il peut se connecter en tant que Pascal Durand
         * à l'aide de son login 'durandp' en entrant comme identifiant 'lecluse=durandp' et comme mot de passe celui de 'lecluse'
         */
        'autorisationsUrsurpation'     => [],
        'autorisationsUsurpation'     => [],

        /* IP ou nom DNS de la machine hébergeant le serveur LDAP. */
        'host'                         => 'ldap.votre-etablissement.fr',
+1 −1
Changes for config/autoload/unicaen-authentification.global.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ $settings = [
    /**
     * Gestion des autorisations d'usurpation
     */
    'usurpation_allowed_usernames' => $conf['ldap']['autorisationsUrsurpation'] ?? [],
    'usurpation_allowed_usernames' => $conf['ldap']['autorisationsUsurpation'] ?? $conf['ldap']['autorisationsUrsurpation'] ?? [],

    /**
     * Configuration de l'authentification locale.
+60
Changes for front/Application/Navbar.vue: 60 added lines, 0 removed lines.
Original line number Diff line number Diff line
<template>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="navbar">
        <div class="container">
            <a class="navbar-brand" :href="data.appUrl" :title="data.appTitle"><h1 class="title">{{ data.appName }}</h1></a>
            <span class="annee"><select v-model="data.annee" onchange="Util.changementAnnee(this.value)">
                <option v-for="(label, value) in data.annees" :value="value">
                    {{ label }}
                </option>
            </select></span>

            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
                    aria-controls="navbarSupportedContent"
                    aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                    <li class="nav-item" v-for="page in data.menuItems">
                        <a :class="{'nav-link':true, active:page.active}" :href="page.url">
                            {{  page.label }}
                        </a>
                    </li>

                </ul>
                <Connexion :data="data.connexion" />
            </div>
        </div>
    </nav>
</template>

<script>
import Connexion from "@/Application/Connexion.vue";

export default {
    name: "Navbar",
    components: {Connexion},
    props: {
        data: Object
    },
    data()
    {
        return {
            identity: '',
            currentRoleId: null,
            selectedStructures: {}
        };
    },
    methods: {

    },
    computed: {

    }
}
</script>

<style scoped>


</style>
 No newline at end of file
Loading