Skip to content

Commit

Permalink
Merge pull request #461 from nofrixion/MOOV-3853-Return-Roles-With-User
Browse files Browse the repository at this point in the history
Return roles with user
  • Loading branch information
sauravmaiti22 authored Nov 18, 2024
2 parents ad36ff6 + a8ce5bd commit 5e2f4fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NoFrixion.MoneyMoov/Models/Roles/RoleUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ public class RoleUser
public List<RoleUserMerchant>? Merchants { get; set; }

public User? User { get; set; }

public Role? Role { get; set; }
}
3 changes: 3 additions & 0 deletions src/NoFrixion.MoneyMoov/Models/User/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
//-----------------------------------------------------------------------------

using System.ComponentModel.DataAnnotations;
using NoFrixion.MoneyMoov.Models.Roles;

namespace NoFrixion.MoneyMoov.Models;

Expand Down Expand Up @@ -41,5 +42,7 @@ public class User

public UserRolePermissions? Permissions { get; set; }

public List<RoleUser>? UserRoles { get; set; }

public bool IsEmpty() => ID == Guid.Empty && EmailAddress == string.Empty;
}

0 comments on commit 5e2f4fb

Please sign in to comment.