Newsletter - Dynamic content - Permissions

David Giuliana asked on April 3, 2018 17:23

Hey,

There is a solution to dynamically generate the content of the site according to the user's permissions in a newsletter template?

Currently in my template I have this:

  articles = Documents["/Articles"]
               .CultureVersions["en-US"]
               .Children
                 .ClassNames("dancinggoat.article")
                 .OrderBy("DocumentPublishFrom DESC")
                 .TopN(4)
                 .WithAllData
                 .WithPermissionsCheck; 

The WithPermissionsCheck property does not filter the result so I have non-accessible content in the newsletter ....

Thank you in advance!

Recent Answers


Zach Perry answered on April 3, 2018 19:52

Been a while since I have messed with Newsletters, but if I recall correctly when using dynamic newsletter it will pull the content based off a user that is not the user the email is going to.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.