serenity-is / Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript
https://serenity.is
MIT License
2.57k stars 796 forks source link

[Bug report]: Can't get current UserId on version 8.4.4 #7123

Closed s10730047 closed 2 months ago

s10730047 commented 2 months ago

Before submitting the bug report, please read and check the following items

What happened?

I just need to get Authorization.UserID in SomeDialog.ts

I was try const userId = Authorization.userDefinition.UserId and const userId = Authorization.UserId

But it's not found UserId in Authorization and Authorization.userDefinition

What did you expect to happen?

Success in getting the current UserID

How to reproduce?

Use Serenity 8.4.4

What Serenity Nuget Versions are you seeing the problem on? (separated by comma)

Serenity 8.4.4

Relevant log output

No response

Serene template version

No response

Sergen version

No response

Code editor

No response

Operating System

No response

Node.js version

v20.12.2

TypeScript version

No response

Database type and version

No response

On which device do you see the problem?

No response

On which operating system do you see the problem?

No response

On which browsers do you see the problem?

No response

On what version of the browsers do you see the problem?

No response

Additional information

No response

VictorTomaili commented 2 months ago

Please use discussions