I am working on a project. which have following.
A Table named Person.
A Table named PersonRole.
- Webconfig (root level)
i have configured role on the Admin,Customer,Team Directory in Areas.
When i try to access the admin directory it redirects me to the login page. yeah right!
i logged in and got the user object having role.
but i dont know how do i compare the role and allow the access to current user on appropriate directory.
for the temporary solution i have created the custom attribute for the respected role it works fine to my but i want something like on the whole directory.
Note: (i am not using Asp.net Membership API)