From e632151c61c0d2a6bf5a3d23fe799deb32e437a4 Mon Sep 17 00:00:00 2001 From: Xavi Caballe Date: Wed, 6 Mar 2013 20:14:08 +0100 Subject: [PATCH] removes the admin link from the nav bar when the user is not admin; worked around a problem caused by lib-noir's sessions middleware and lazy sequences produced by Enlive (see comment in noir-auth-app.views.common/navigation-menu for details) --- resources/public/navs.html | 2 +- src/noir_auth_app/views/admin.clj | 5 +++-- src/noir_auth_app/views/common.clj | 24 ++++++++++++++++++++++-- src/noir_auth_app/views/users.clj | 2 +- 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/resources/public/navs.html b/resources/public/navs.html index 2351224..e5576ce 100644 --- a/resources/public/navs.html +++ b/resources/public/navs.html @@ -18,7 +18,7 @@