diff --git a/Mundialito/Client/src/Users/ManageApp.html b/Mundialito/Client/src/Users/ManageApp.html index c21a2a4..0514d57 100644 --- a/Mundialito/Client/src/Users/ManageApp.html +++ b/Mundialito/Client/src/Users/ManageApp.html @@ -8,12 +8,14 @@ + - + +
NameRole Email Actions
{{::user.Name}}{{::user.Roles}} {{::user.Name}}{{::user.Roles}} {{user.Email}} diff --git a/Mundialito/Client/src/Users/UserProfile.html b/Mundialito/Client/src/Users/UserProfile.html index 3903bac..5bde51b 100644 --- a/Mundialito/Client/src/Users/UserProfile.html +++ b/Mundialito/Client/src/Users/UserProfile.html @@ -3,7 +3,7 @@

- {{profileUser.Name}} Profile + {{profileUser.Name}} {{::profileUser.Roles}}

diff --git a/Mundialito/Models/UserModel.cs b/Mundialito/Models/UserModel.cs index e18cd90..b909eda 100644 --- a/Mundialito/Models/UserModel.cs +++ b/Mundialito/Models/UserModel.cs @@ -14,6 +14,7 @@ public UserModel(MundialitoUser user) Email = user.Email; Points = 0; ProfilePicture = user.ProfilePicture == null ? "../../../icons/user.webp" :user.ProfilePicture; + Roles = user.Role.ToString(); } [JsonPropertyName("Id")] @@ -27,10 +28,7 @@ public UserModel(MundialitoUser user) [JsonPropertyName("Email")] public string Email { get; set; } - - [JsonPropertyName("IsAdmin")] - public bool IsAdmin { get; set; } - + [JsonPropertyName("Username")] public string Username { get; set; } diff --git a/Mundialito/wwwroot/App/Users/ManageApp.html b/Mundialito/wwwroot/App/Users/ManageApp.html index 8be4363..4007ad7 100644 --- a/Mundialito/wwwroot/App/Users/ManageApp.html +++ b/Mundialito/wwwroot/App/Users/ManageApp.html @@ -8,12 +8,14 @@ + - + +
NameRole Email Actions
{{::user.Name}}{{::user.Roles}} {{::user.Name}}{{::user.Roles}} {{user.Email}} diff --git a/Mundialito/wwwroot/App/Users/UserProfile.html b/Mundialito/wwwroot/App/Users/UserProfile.html index 71c90e0..62d21cd 100644 --- a/Mundialito/wwwroot/App/Users/UserProfile.html +++ b/Mundialito/wwwroot/App/Users/UserProfile.html @@ -3,7 +3,7 @@

- {{profileUser.Name}} Profile + {{profileUser.Name}} Profile{{::profileUser.Roles}}