From 84c27b4da09e468abc61d1b4b8203f1f429a4a1c Mon Sep 17 00:00:00 2001 From: Sondissimo Date: Thu, 10 Aug 2023 16:13:56 +0200 Subject: [PATCH] CST-11012 Changed config settings for notify protocol --- .../app/rest/authorization/impl/CoarNotifyLdnEnabled.java | 2 +- dspace/config/modules/coar-notify-ldn.cfg | 4 ++-- dspace/config/modules/rest.cfg | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dspace-server-webapp/src/main/java/org/dspace/app/rest/authorization/impl/CoarNotifyLdnEnabled.java b/dspace-server-webapp/src/main/java/org/dspace/app/rest/authorization/impl/CoarNotifyLdnEnabled.java index 1878803975..4f2e478693 100644 --- a/dspace-server-webapp/src/main/java/org/dspace/app/rest/authorization/impl/CoarNotifyLdnEnabled.java +++ b/dspace-server-webapp/src/main/java/org/dspace/app/rest/authorization/impl/CoarNotifyLdnEnabled.java @@ -23,7 +23,7 @@ public class CoarNotifyLdnEnabled implements AuthorizationFeature { private ConfigurationService configurationService; @Override public boolean isAuthorized(Context context, BaseObjectRest object) throws SQLException, SearchServiceException { - return configurationService.getBooleanProperty("coar-notify.enable_globally", false); + return configurationService.getBooleanProperty("coar-notify.enable_globally", true); } @Override diff --git a/dspace/config/modules/coar-notify-ldn.cfg b/dspace/config/modules/coar-notify-ldn.cfg index 096c39b8c5..3cf3afa028 100644 --- a/dspace/config/modules/coar-notify-ldn.cfg +++ b/dspace/config/modules/coar-notify-ldn.cfg @@ -5,5 +5,5 @@ #---------------------------------------------------------------# #Boolean to determine if Coar Notify is enabled globally for entire site. -#default => false -coar-notify.enable_globally = true +#default => true +coar-notify.enabled = true diff --git a/dspace/config/modules/rest.cfg b/dspace/config/modules/rest.cfg index 657e02b58d..846d587b31 100644 --- a/dspace/config/modules/rest.cfg +++ b/dspace/config/modules/rest.cfg @@ -52,6 +52,7 @@ rest.properties.exposed = google.recaptcha.mode rest.properties.exposed = cc.license.jurisdiction rest.properties.exposed = identifiers.item-status.register-doi rest.properties.exposed = authentication-password.domain.valid +rest.properties.exposed = coar-notify.enabled #---------------------------------------------------------------# # These configs are used by the deprecated REST (v4-6) module #