HI woodbase,
You can add a value in your user table, like role. if role==1 return true, else return false.
- public override bool GetUserInfo(string loginName, ref string nickName, ref bool isAdmin)
- {
- nickName = loginName;
- isAdmin = IsAdminUser(loginName);
- return true;
- }
- public bool IsAdminUser(string loginName)
- {
-
- if (GetUserRole(loginName) == 1)
- {
- return true;
- }
- else
- {
- return false;
- }
Regards,
Ken