From d72210c6aedd03ee589ad06aa3ab57ec6ed049f2 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Wed, 3 Nov 2021 19:05:24 +0400 Subject: [PATCH] Exclude upload rights visibility if upload is not activated --- cps/templates/admin.html | 4 ++++ cps/templates/user_edit.html | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cps/templates/admin.html b/cps/templates/admin.html index 9a941594..f99c0938 100644 --- a/cps/templates/admin.html +++ b/cps/templates/admin.html @@ -16,7 +16,9 @@ {{_('Downloads')}} {{_('Admin')}} {{_('Password')}} + {% if config.config_upload %} {{_('Upload')}} + {% endif %} {{_('Download')}} {{_('View Books')}} {{_('Edit')}} @@ -32,7 +34,9 @@ {{user.downloads.count()}} {{ display_bool_setting(user.role_admin()) }} {{ display_bool_setting(user.role_passwd()) }} + {% if config.config_upload %} {{ display_bool_setting(user.role_upload()) }} + {% endif %} {{ display_bool_setting(user.role_download()) }} {{ display_bool_setting(user.role_viewer()) }} {{ display_bool_setting(user.role_edit()) }} diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index a250c246..c32ab660 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -101,10 +101,12 @@ + {% if config.config_upload %}
+ {% endif %}