diff --git a/Backend/services/core/src/main/java/org/edu_sharing/restservices/shared/NodeUrls.java b/Backend/services/core/src/main/java/org/edu_sharing/restservices/shared/NodeUrls.java index ffd090ace..e3153c85f 100644 --- a/Backend/services/core/src/main/java/org/edu_sharing/restservices/shared/NodeUrls.java +++ b/Backend/services/core/src/main/java/org/edu_sharing/restservices/shared/NodeUrls.java @@ -14,7 +14,7 @@ public NodeUrls(Node node, String requestedVersion) { repositoryBaseUrl = URLHelper.getBaseUrl(true); if(node.getAspects().contains(CCConstants.getValidLocalName(CCConstants.CCM_ASPECT_LTITOOL_NODE))){ generateLtiResourceLink = repositoryBaseUrl + "/rest/ltiplatform/v13/generateLoginInitiationFormResourceLink?nodeId=" + node.getRef().getId(); - if(Context.getCurrentInstance() != null && Context.getCurrentInstance().getSessionAttribute(CCConstants.AUTH_SINGLE_USE_NODEIDS) != null){ + if(Context.getCurrentInstance() != null){ if(Context.getCurrentInstance().isSingleUseNodeId(node.getRef().getId())){ //generate short living jwt try {