A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
You are correct, Vincent, IPrincipalAccessor was the way to go! I figured it out, but forgot to update this thread.
In CMS 11 we could log in as a user like this
It made sense in scheduled jobs, if it were important that the job had the privilieges as a normal visitor. Even if the job were started manually.
How can this be done in CMS 12?
PrincipalInfo.CurrentPrincipalis readonly now.