[quote]This author instance have admin central and public part wher user can see pages.[/quote]
No, there is no public part on an author instance. Everything requires login on an author instance. You can rule out the possibility that an anonymous user is doing either on an author instance. [quote]I need to know in code behing if user using admincentral (like if he is editing pages, ...) or if he browsing pages and is not logged into admin central.[/quote] OK, let's assume that you have an author instance and you want to know whether a LOGGED-IN user is: A) Editing pages http://demoauthor.magnolia-cms.com/.magnolia/admincentral#app:pages:detail;/demo-project/about:edit B) Browsing pages (similar to preview) http://demoauthor.magnolia-cms.com/demo-project/about.html To differentiate between A and B in code, I think you could examine the request URL. You can get the URL from the AggregationState. Maybe check if the #app:pages fragment is present or the /admincentral element. http://documentation.magnolia-cms.com/display/DOCS/API#API-Context May I ask, where does the requirement to differentiate between A vs B access come from? --Antti -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=3f525b48-26f5-4498-be57-adb1bf1e42a9 ---------------------------------------------------------------- For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
