diff --git a/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/__init__.py b/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/__init__.py index 8b13789..e69de29 100644 --- a/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/__init__.py +++ b/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/__init__.py @@ -1 +0,0 @@ - diff --git a/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/auth_roles.csv b/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/auth_roles.csv index 4022c6a..e6e35e8 100644 --- a/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/auth_roles.csv +++ b/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/auth_roles.csv @@ -41,7 +41,7 @@ EDITOR,Editor,,project,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, EDITOR,Editor,,doc,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, EDITOR,Editor,,hrm,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, EDITOR,Editor,,appadmin,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, -EDITOR,Editor,,hms,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, +EDITOR,Editor,,med,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, EDITOR,Editor,,req,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, EDITOR,Editor,,mpr,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, EDITOR,Editor,,sync,,,,ALL,CREATE|READ|UPDATE|REVIEW|APPROVE, @@ -56,7 +56,7 @@ ORG_ADMIN,Organization Admin,,org,,,,ALL,ALL, ORG_GROUP_ADMIN,Organzation Group Admin,,,,,,,, medical_admin,Medical Details Admin,"Complementary role: FULL access but only to medical data of registered evacuees. It must be assigned with other roles to grant access to the other types of data. When to assign: Medical Staff.",patient,,,,ALL,ALL, -medical_admin,Medical Details Admin,,hms,,,,ALL,ALL, +medical_admin,Medical Details Admin,,med,,,,ALL,ALL, medical_admin,Medical Details Admin,,dvi,,,,ALL,ALL, notification_sender,Notification Sender,,msg,,,,ALL,ALL, org_reader,Organization Reader,"Complementary role: Access in ""READ only"" mode to Organization data and its branches diff --git a/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/config.py b/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/config.py index 8abff19..1fb76b3 100644 --- a/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/config.py +++ b/sahana-spotter/image.d/srv/web2py/applications/eden/modules/templates/Spotter/config.py @@ -6,6 +6,11 @@ from gluon import current from gluon.storage import Storage def config(settings): + """ + Template settings for the Default template + - default settings suitable for a small organisation managing it's own resources + """ + T = current.T # Pre-Populate @@ -26,34 +31,31 @@ def config(settings): # Theme (folder to use for views/layout.html) #settings.base.theme = "default" - # Enable Guided Tours - # - defaults to module enabled or not - #settings.base.guided_tour = True - # Authentication settings # These settings should be changed _after_ the 1st (admin) user is # registered in order to secure the deployment # Should users be allowed to register themselves? #settings.security.self_registration = False # Do new users need to verify their email address? - #settings.auth.registration_requires_verification = True + settings.auth.registration_requires_verification = True # Do new users need to be approved by an administrator prior to being able to login? - #settings.auth.registration_requires_approval = True + settings.auth.registration_requires_approval = True # Disable welcome-emails to newly registered users #settings.auth.registration_welcome_email = False + # Approval emails get sent to all admins + settings.mail.approver = "ADMIN" + # Allow a new user to be linked to a record (and a new record will be created if it doesn't already exist) - settings.auth.registration_link_user_to = {"staff":T("Staff"), - "volunteer":T("Volunteer"), - "member":T("Member")} + settings.auth.registration_link_user_to = {"staff": T("Staff"), + "volunteer": T("Volunteer"), + "member": T("Member"), + } + settings.auth.registration_link_user_to_default = ["staff"] # Always notify the approver of a new (verified) user, even if the user is automatically approved #settings.auth.always_notify_approver = False - # The name of the teams that users are added to when they opt-in to receive alerts - #settings.auth.opt_in_team_list = ["Updates"] - # Uncomment this to set the opt in default to True - #settings.auth.opt_in_default = True # Uncomment this to request the Home Phone when a user registers settings.auth.registration_requests_home_phone = True # Uncomment this to request the Mobile Phone when a user registers @@ -107,7 +109,6 @@ def config(settings): # Terms of Service to be able to Register on the system # https://termsfeed.com/terms-conditions/generator/ # uses