SaaS CMS has officially launched! Learn more now.
AI OnAI Off
SaaS CMS has officially launched! Learn more now.
Restrictions? Like this?
EPiServer.ServiceLocation.ServiceLocator.Current.GetInstance<IContentSecurityRepository>().Get(ContentReference.StartPage).Entries;
I have defined several restrictions for pages in CMS.
I am having a list of ContentReferences of the pages.
How can I get their restrictions programmatically?
Note: I do not need to pass a user and check whether that user has access to that page or not, instead I need to know what are the restrictions defined for a particular page using ContentReference.