hi guys,
Just wanted to ask to how is User management and Page access based on user role is implemented?
1]Suppose page/feature access is to be given based on type of user eg: Sales,Marketing,Engineering .So we end up with something like
if(CurrentUser.IsInRole("Sales"))
{
//for - sales feature
}
else
{
// etc..etc..
}
How can this be avoided??
2]Suppose if a new role gets added/created then modifying the code isn't feasible?
3]Can the same design be used if the roles are stored in database?
Currently using Asp.net..but any generic/specific solution is welcomed too.
Thx
Amitd