CST-11012 Changed config settings for notify protocol

This commit is contained in:
Sondissimo
2023-08-10 16:13:56 +02:00
parent 88aa7eca78
commit 84c27b4da0
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

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