Commit 928eef66 authored by Ivan Tyagov's avatar Ivan Tyagov

By default enable automatic approval of credential requests if Wendelin's data...

By default enable automatic approval of credential requests if Wendelin's data lake bt5 is installed.
Add also proper warning accordingly.
parent 3bcf75c5
......@@ -13,6 +13,22 @@ if default_site_preference is not None:
if default_site_preference.getPreferenceState() == "disabled":
default_site_preference.enable()
# enable automatic approval of Credential Requests only if erp5_wendelin_data_lake is installed
if portal.portal_templates.getInstalledBusinessTemplate("erp5_wendelin_data_lake_ingestion", strict=True) is not None:
default_system_preference = getattr(portal.portal_preferences,
'default_system_preference', None)
if default_system_preference is not None:
default_system_preference.setPreferredCredentialRequestAutomaticApproval(True)
if default_system_preference.getPreferenceState() == "disabled":
default_system_preference.enable()
# change periodicity of respective alarms from default 60 mins to 1 minute
# so that we can have a default system in which user registration happens instantly
accept_submitted_credentials = getattr(portal.portal_alarms,
'accept_submitted_credentials', None)
if accept_submitted_credentials is not None:
accept_submitted_credentials.setPeriodicityMinuteFrequency(1)
# updata local roles (if any)
business_template = context.getSpecialiseValue()
......
......@@ -209,7 +209,9 @@
</item>
<item>
<key> <string>default</string> </key>
<value> <string>WARNING: Setup of Data Notebook module for Jupyter integration exposes ERP5 to remote code execution and should be used carefully. Please note that still proper authentication is needed for remote code execution.</string> </value>
<value> <string>WARNING: Setup of Data Notebook module for Jupyter integration exposes ERP5 to remote code execution and should be used carefully. Please note that still proper authentication is needed for remote code execution.\n
\n
WARNING: Setup of data lake functionality will enable the default data lake\'s security model which would allow anonymous users to register to your site (of course with proper email validation step!). Please note that this model is quite restrictive though and applies generally to Data Lake functionality only.</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment