diff --git a/cps/templates/layout.html b/cps/templates/layout.html
index 9b07bdbd..f47d3ea1 100644
--- a/cps/templates/layout.html
+++ b/cps/templates/layout.html
@@ -63,13 +63,15 @@
{% if g.user.is_authenticated() %}
- -
-
-
+ {% if g.user.role %}
+ -
+
+
+ {% endif %}
{% if g.user.role %}
- Admin
{% endif %}
diff --git a/cps/web.py b/cps/web.py
index ea11bb7d..09e2a230 100755
--- a/cps/web.py
+++ b/cps/web.py
@@ -749,6 +749,7 @@ def edit_book(book_id):
@app.route("/upload", methods = ["GET", "POST"])
@login_required
+@admin_required
def upload():
## create the function for sorting...
db.session.connection().connection.connection.create_function("title_sort",1,db.title_sort)