Try our conversational search powered by Generative AI!

EPiServer.Security namespace


I am unable to get EPiServer.Security.AccessLevel enum? Actually i want to use GetPage to get contents of the page. Getpage has three parameters, last parameter is  EPiServer.Security.AccessLevel but AccessLevel enum is not coming. Any idea?

Nov 21, 2011 18:56

The overload of GetPage which accepts an AccessLevel parameter is obsolete since CMS 5 R2 and the parameter will be ignored anyway. GetPage will return any page, you have to check the PageData.ACL (.QueryDistinctAccess for example). You'll still need the AccessLevel enum though, and your problem is probably that you don't have a reference to the EPiServer.BaseLibrary assembly.

Good luck!

Edited, Nov 21, 2011 19:22

Thanks for your reply. Yes, you are right, reference to EPiServer.BaseLibrary was missing. Problem solved!

Nov 22, 2011 12:32
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.