summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index cb19c4b..2d7deac 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1090,6 +1090,9 @@ def action_folder_add():
if not room and not center:
flash(_('Please, select a room or a center'), category='error')
return redirect(url_for('scopes'))
+ if params.get('folder'):
+ flash(('Error: A folder has been selected. Please, select a room or a center'), category='error')
+ return redirect(url_for('scopes'))
form.server.data = params['scope-server']
form.room.data = room
form.center.data = center