Looking for some advice, I have a bool property value on a user object that indicates if the user is an admin. I have some menu links on my view, which if your an admin I want to show(other wise dont show), I also want to ensure that the controller has an attribute that checks to ensure the user is an admin, so whats the best way to implement this, examples welcomed.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
Here is my attribute for navigation build
and usage
but roles using anyvay to show or not show item |
|||
|