Commit 5df00c5d authored by Ard Schrijvers's avatar Ard Schrijvers

HSTTWO-4545 [Backport 11.2] Return the created session (instead of null)

(cherry picked from commit 72fb4c0b)
parent 99c1344f
......@@ -785,7 +785,7 @@ public class ContentBeanUtils {
// create a security delegated session that is automatically cleaned up at the end of the request
final Session newPreviewSecurityDelegate = sessionSecurityDelegation.createPreviewSecurityDelegate(cmsUserCred, true);
requestContext.setAttribute(ContentBeanUtils.class.getName() + "." + sessionIdentifier, newPreviewSecurityDelegate);
return previewSecurityDelegate;
return newPreviewSecurityDelegate;
} catch (RepositoryException e) {
throw new HstComponentException(e);
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