User profile history #3

Merged
Jiri merged 13 commits from 250812_UserProfileHistory into main 2026-01-16 23:00:35 +00:00
Owner
  • Probably includes another unmerged branch from Shoob
  • Db update records fix
  • Db collection initialization as empty instead of null
  • Tracking user profile field edits
  • User history get (admins)
- Probably includes another unmerged branch from Shoob - Db update records fix - Db collection initialization as empty instead of null - Tracking user profile field edits - User history get (admins)
Jiri added 13 commits 2026-01-16 22:42:52 +00:00
Refactor the AdminOnly authorization policy to handle cases where a user profile is not found.
Instead of throwing a NotFoundException, it now throws a ForbiddenException, ensuring a more appropriate response for unauthorized access attempts.
Also introduces PolicyConstants for policy names.
Implement API endpoints for creating and retrieving product tables.
This allows administrators to define product tables and retrieve them by name.
The creation endpoint is secured and only accessible to administrators.
Define a one-to-one relationship between CompanyTable and ProductTable.

Correct a typo in the CompanyTable DbSet name within the ApplicationDbContext to ensure correct database mapping and operations.
Introduce a new entity to couple product and company tables.
# Conflicts:
#	DrinkRateAPI/Controllers/UserProfileController.cs
Jiri merged commit 42351d170c into main 2026-01-16 23:00:35 +00:00
Jiri deleted branch 250812_UserProfileHistory 2026-01-16 23:00:36 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
chilldev/drinkrate!3
No description provided.