May 2, 2012 at 12:28 AM
Edited May 2, 2012 at 12:38 AM
|
I have a section of the site I'm working on that I want to be accessible to members not everyone so I changed permissions for the page (and branch/sub pages) via the n2 admin ui and I've overriden IsAuthorized on in the definition of the page/content type.
The site is MVC3 with basically a minimal and dinamicro inspired integration of n2cms. Version of n2cms is 2.2.2 from github end of 2011 (should probably update to latest from github but don't want to break anything at this stage).
My question is what is the best way or best place in code to suppress the permission denied exception and simply redirect to login when an un-authenticated user attempts to go to the page (or sub pages)?
|