I'm looking for a way to get a list of roles that are assigned to a page that my widget is on.
I have a widget that in one config is performing some filtering of other documents, in the second config it will do the same initial filtering, but then also take out any documents that do not have the specified role assigned to it.
I've seen posts, where people mention the CheckPermissions method, but this is not going to work for me, as some of the information is coming from a custom table, where the role is assigned.
I've come up with the following to get the assigned document roles, but this seems really messy, and I was wondering if anyone has some insight into how it could be done better
var query = CMS.DocumentEngine.AclItemInfoProvider.GetACLItemsAndOperators(Document.NodeID)
var documentRoles = new System.Collections.Generic.List