From d9c84c8bae08df683c5ad0dd7b89c504df70285f Mon Sep 17 00:00:00 2001 From: Disassembler Date: Wed, 27 Sep 2017 08:56:18 +0200 Subject: [PATCH] Fix Sahana CAP alert undesirable auto-approval, resolves #50 --- .../eden/modules/templates/Spotter/config.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sahana/srv/sahana/applications/eden/modules/templates/Spotter/config.py b/sahana/srv/sahana/applications/eden/modules/templates/Spotter/config.py index 399b072..fc41791 100644 --- a/sahana/srv/sahana/applications/eden/modules/templates/Spotter/config.py +++ b/sahana/srv/sahana/applications/eden/modules/templates/Spotter/config.py @@ -88,9 +88,10 @@ def config(settings): # Define access levels for entity role manager #settings.auth.access_levels = OrderedDict([]) # Uncomment this to enable record approval - #settings.auth.record_approval = True + settings.auth.record_approval = True # Uncomment this and specify a list of tablenames for which record approval is required - #settings.auth.record_approval_required_for = ("org_organisation",) + settings.auth.record_approval_required_for = ("cap_alert",) + settings.auth.record_approval_manual = ("cap_alert",) # Uncomment this to request an image when users register #settings.auth.registration_requests_image = True # Uncomment this to direct newly-registered users to their volunteer page to be able to add extra details @@ -957,6 +958,13 @@ def config(settings): # Uncomment to make Heliport codes unique #settings.transport.heliport_code_unique = True + # ------------------------------------------------------------------------- + # CAP + settings.get_cap_languages = OrderedDict([ + ("cs", "Česky"), + ("en-US", "English"), + ]) + # ------------------------------------------------------------------------- # Filter Manager #settings.search.filter_manager = False