Skip to content

Commit

Permalink
feat: #dev user banned status response
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbator committed Oct 24, 2024
1 parent cee0100 commit 780f062
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rag-2-backend/DTO/User/UserResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ public class UserResponse
public required string Name { get; init; }
public required int StudyCycleYearA { get; set; }
public required int StudyCycleYearB { get; set; }
public bool Banned { get; set; }
}
3 changes: 2 additions & 1 deletion rag-2-backend/Mapper/UserMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public static UserResponse Map(User user)
Role = user.Role,
StudyCycleYearA = user.StudyCycleYearA,
StudyCycleYearB = user.StudyCycleYearB,
Name = user.Name
Name = user.Name,
Banned = user.Banned
};
}

Expand Down

0 comments on commit 780f062

Please sign in to comment.