diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-12 00:13:24 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-12 00:13:24 +0100 |
commit | 3fbbe61a460b8d5415b61de505b4ac1ab8692b25 (patch) | |
tree | a1973b6e93c64bd968dc7130f3b38b5690efc322 /templates/home.html | |
parent | 7ca56ba8df6c936909e3fe64d8e22d6ece50e9b2 (diff) | |
download | guichet-3fbbe61a460b8d5415b61de505b4ac1ab8692b25.tar.gz guichet-3fbbe61a460b8d5415b61de505b4ac1ab8692b25.zip |
Refactor is_admin check
Diffstat (limited to 'templates/home.html')
-rw-r--r-- | templates/home.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/home.html b/templates/home.html index 9a9773a..7f227e6 100644 --- a/templates/home.html +++ b/templates/home.html @@ -16,13 +16,13 @@ <div class="list-group list-group-flush"> <a class="list-group-item list-group-item-action" href="/profile">Modifier mon profil</a> <a class="list-group-item list-group-item-action" href="/passwd">Modifier mon mot de passe</a> - {{if .CanInvite}} + {{if .Login.CanInvite}} <a class="list-group-item list-group-item-action" href="/invite">Inviter quelqu'un</a> {{end}} </div> </div> -{{if .CanAdmin}} +{{if .Login.CanAdmin}} <div class="card mt-3"> <div class="card-header"> Administration |