abp icon indicating copy to clipboard operation
abp copied to clipboard

How to get extra property of current user in angular

Open dkaczor97 opened this issue 5 years ago • 2 comments

  • Your ABP Framework version.: 4.4.2 Commercial
  • Your User Interface type: Angular
  • Your database provider: EF Core

I added an extra property to IdentityUser by following this article . Now I want to be able to use it in Angular app when I get current user by ConfigStateService. I guess I should override the GetCurrentUser in AbpApplicationConfigurationAppService but it's in Volo.Abp.AspNetCore.Mvc project which isn't directly referenced by any of the projects in application startup template. Should I add the reference in .Application project, override the app service somewhere else or create my own app service just to load current user with extra properties?

dkaczor97 avatar Sep 30 '21 08:09 dkaczor97

I think you don't need to do anything to get the extra property of the current user. we may need to revise it.

ebicoglu avatar Oct 08 '21 10:10 ebicoglu

@ebicoglu How do I get it then? When I get current user by ConfigStateService there are no extra properties

dkaczor97 avatar Oct 11 '21 07:10 dkaczor97