Changeset 5774


Ignore:
Timestamp:
Sep 7, 2017, 12:13:11 PM (2 years ago)
Author:
hectorgh
Message:

added x-lliurex-usertype when importing

Location:
llum/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • llum/trunk/fuentes/llum.userprefs

    r4870 r5774  
    11<Properties StartupItem="llum/llum.csproj">
    22  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|x86" />
    3   <MonoDevelop.Ide.Workbench ActiveDocument="llum/Main.cs">
     3  <MonoDevelop.Ide.Workbench ActiveDocument="llum/XmlrpcClient.cs">
    44    <Files>
    55      <File FileName="llum/Main.cs" Line="46" Column="56" />
    6       <File FileName="llum/XmlrpcClient.cs" Line="543" Column="3" />
     6      <File FileName="llum/XmlrpcClient.cs" Line="1215" Column="6" />
     7      <File FileName="llum/ImportExportWidget.cs" Line="1" Column="1" />
    78    </Files>
    89  </MonoDevelop.Ide.Workbench>
  • llum/trunk/fuentes/llum/XmlrpcClient.cs

    r4499 r5774  
    12091209                                        if(tmp3.ContainsKey("uidNumber"))
    12101210                                                user["uidNumber"]=(string)(tmp3["uidNumber"]);
     1211                                        if(tmp3.ContainsKey("x-lliurex-usertype"))
     1212                                                user["x-lliurex-usertype"]=(string)(tmp3["x-lliurex-usertype"]);
     1213                                        else
     1214                                                user["x-lliurex-usertype"]="generic";
     1215                                       
    12111216                                        user["groups"]=JsonConvert.DeserializeObject<string[]>(JsonConvert.SerializeObject(tmp3["groups"]));
    12121217                                        users[x]=user;
Note: See TracChangeset for help on using the changeset viewer.