aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-08-06 12:44:18 +0100
committerDave Arter <davea@mysociety.org>2019-08-07 09:32:56 +0100
commit64d141404b5b6714b76c7606ad63cd05a78bf9c5 (patch)
tree164794fcd98cd7f7d3aa54b996c96b2c5938e614
parente5d107a72d38cf9ed45b3df3888e2348a3538fa3 (diff)
Disable ‘add user’ form on admin user search when role selected
Fixes mysociety/fixmystreet-commercial#1485
-rw-r--r--templates/web/base/admin/users/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/admin/users/index.html b/templates/web/base/admin/users/index.html
index 880b4a417..f48893cb0 100644
--- a/templates/web/base/admin/users/index.html
+++ b/templates/web/base/admin/users/index.html
@@ -90,7 +90,7 @@
[% END %]
-[% IF NOT searched %]
+[% IF NOT ( searched || role_selected )%]
<h2>[% loc('Add user') %]</h2>
[% INCLUDE 'admin/users/form.html', user = '' %]
[% ELSE %]