diff --git a/views/layout.pug b/views/layout.pug index c5ff3e1..b248e5e 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -8,6 +8,16 @@ html div#user a(href="/") Home + if user + if user.permissions >= 1 + p - + a(href="/sandwiches") Sandwiches + if user.permissions >= 2 + p - + a(href="/orders") Commands + if user.permissions >= 3 + p - + a(href="/admin") Administration p | if user a(href="/profile")=user.username