Re: Setting external user as admin (Integration)

  •  08-19-2009, 4:27 AM

    Re: Setting external user as admin (Integration)

    HI woodbase,

    You can add a value in your user table, like role. if role==1 return true, else return false.
    1. public override bool GetUserInfo(string loginName, ref string nickName, ref bool isAdmin)   
    2.     {   
    3.         nickName = loginName;   
    4.         isAdmin = IsAdminUser(loginName);   
    5.         return true;   
    6.     }   
    7.     public bool IsAdminUser(string loginName)   
    8.     {   
    9.         //check your user table use method GetUserRole()   
    10.         if (GetUserRole(loginName) == 1)   
    11.         {   
    12.             return true;   
    13.         }   
    14.         else  
    15.         {   
    16.             return false;   
    17.         }  
    Regards,
    Ken

     

View Complete Thread