Fix Sahana CAP alert undesirable auto-approval, resolves #50

This commit is contained in:
Disassembler 2017-09-27 08:56:18 +02:00
parent 8402177b94
commit d9c84c8bae

View File

@ -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