What is the fastest and best way to check if a user (by user id) has access to a paragraph (by paragraph id)?
As you understand I dont want to check if the current user has access to the current paragraph, but if a user has access to a paragraph.
Tried something like this, but not sure what to do with the result "permission". I just want a clear true/false if the user has access to the paragraph.
var pService = new Dynamicweb.Content.ParagraphPermissionService(); var permission = pService.GetPermissionForUser(userId, paragraphId, Dynamicweb.Security.UserManagement.PagePermissionLevels.Frontend);