Serenity: User details in Dialog

Created on 9 Jan 2017  路  5Comments  路  Source: serenity-is/Serenity

How can i get Serenity.Authorization.UserId in *Dialog.ts
as of now i'm getting DisplayName and Username but i need UserId

Most helpful comment

@vinaykulkarni89 Add UserId in ScriptUserDefinition.cs and UserEndpoint.cs

Best Regards

All 5 comments

@vinaykulkarni89 is userId column Declared Hidden() or Visible(false) ?

In UserForm add

[Hidden]
public Int32 UserId { get; set; }

Compile, Transform all T4 template and you get in dialog.ts

@Estrusco i want the UserId in NameSpace Serenity.Authorization, in *Dialog.ts

currently i'm getting only Username, DisplayName and HasPermission

@vinaykulkarni89 Add UserId in ScriptUserDefinition.cs and UserEndpoint.cs

Best Regards

@edson thankyou, it helped me a lot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chintankukadiya18 picture chintankukadiya18  路  3Comments

stepankurdylo picture stepankurdylo  路  3Comments

GitHubOrim picture GitHubOrim  路  3Comments

ga5tan picture ga5tan  路  3Comments

AmuthaKondusamy picture AmuthaKondusamy  路  3Comments