I have the following code:
var tree = new TreeProvider(CMSContext.CurrentUser);
using (DataSet nodes = tree.SelectNodes(CMSContext.CurrentSiteName,
String.Empty, String.Empty, true, String.Empty, where, "[DocumentModifiedWhen] DESC", -1, true, 20, "DocumentName, NodeAliasPath, DocumentCulture, ClassName, NodeID"))
This seems to return nodes regardless of the permissions set on them. I.e., I have a user who does
not have read permission on a node, the node is still returned by this function call, despite being initialized in the context of the user.
Is there an API call to return a dataset of nodes that the user has read permission(s) to?
Or, do I then need to filter the results using TreeSecurityProvider.FilterDataSetByPermissions(documents,
NodePermissionsEnum.ModifyPermissions, user);?
Thanks!
Joe Hoppe