I was trying to determine the best way to secure my admin* actions when I thought of something I had only really seen while studying for my MCSD.Net exams, or maybe it was the MCPD upgrade exams I haven't gotten round to taking.
I decided to secure the admin controller actions using.
[PrincipalPermission(SecurityAction.Demand,Role="<Role>")]
Which I had never used even though I started programming .Net in during the beta of 1.0. And I have to admit that each time I run into something like this, it makes me feel that my thought in a previous post is right.
This works for my immediate...
posted @ Tuesday, December 18, 2007 1:22 AM |