Skip to content
Snippets Groups Projects
Commit 372653aa authored by Piotr Gawron's avatar Piotr Gawron
Browse files

default privileges migrated

parent 4ca7729b
No related branches found
No related tags found
2 merge requests!836Resolve "Implement Spring Security",!613WIP: New Minerva Security Layer
......@@ -210,7 +210,13 @@ public enum ConfigurationElementType {
"Dear Disease map team,\nI would like to request an account in the system.\nKind regards",
ConfigurationElementEditType.TEXT, false, ConfigurationElementTypeGroup.EMAIL_NOTIFICATION),
DEFAULT_VIEW_PROJECT("Default user privilege for: " + PrivilegeType.READ_PROJECT.getDescription(), "true",
DEFAULT_READ_PROJECT("Default user privilege for: " + PrivilegeType.READ_PROJECT.getDescription(), "true",
ConfigurationElementEditType.BOOLEAN, false, ConfigurationElementTypeGroup.DEFAULT_USER_PRIVILEGES),
DEFAULT_WRITE_PROJECT("Default user privilege for: " + PrivilegeType.WRITE_PROJECT.getDescription(), "false",
ConfigurationElementEditType.BOOLEAN, false, ConfigurationElementTypeGroup.DEFAULT_USER_PRIVILEGES),
DEFAULT_CAN_CREATE_OVERLAYS("Default user privilege for: " + PrivilegeType.CAN_CREATE_OVERLAYS.getDescription(), "true",
ConfigurationElementEditType.BOOLEAN, false, ConfigurationElementTypeGroup.DEFAULT_USER_PRIVILEGES),
SHOW_REACTION_TYPE("Show reaction type", "true", ConfigurationElementEditType.BOOLEAN, false,
......
update configuration_option_table set type ='DEFAULT_READ_PROJECT' where type = 'DEFAULT_VIEW_PROJECT';
update configuration_option_table set type ='DEFAULT_WRITE_PROJECT' where type = 'DEFAULT_USER_PRIVILEGES';
update configuration_option_table set type ='DEFAULT_CAN_CREATE_OVERLAYS' where type = 'DEFAULT_CUSTOM_LAYOUTS';
update configuration_option_table set value = 'true' where type ='DEFAULT_CAN_CREATE_OVERLAYS' and value<>'0';
update configuration_option_table set value = 'false' where type ='DEFAULT_CAN_CREATE_OVERLAYS' and value='0';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment