Commit 72fb4c0b authored by Ard Schrijvers's avatar Ard Schrijvers

HSTTWO-4545 Return the created session (instead of null)

parent 18daae02
......@@ -814,7 +814,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