[MGNLSTK-707] add a method to STKUtil to create nodes privileged Created: 12/Nov/10  Updated: 08/Mar/11  Resolved: 12/Nov/10

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.6, 1.4

Type: Improvement Priority: Major
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLSTK-615 info.magnolia.cms.security.AccessDeni... Closed
supersession
supersedes MGNLSTK-499 "ExtrasArea" - Exception on public-in... Closed
Template:
Acceptance criteria:
Empty

 Description   

In various places we execute the code in the system context to auto generate paragraphs. There are various tricky things one has to be aware of:

  • refetch the node as content.createContent() would still create it in the context the content object was retrieved from
  • while one changes the content in the system content we have to return the content from the current context to ensure that permissions are respected and that the chain of wrapping content is not broken.


 Comments   
Comment by Philipp Bärfuss [ 17/Nov/10 ]

backported to 1.3.x

Generated at Mon Feb 12 07:29:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.