Skip to content

Commit b0d39b4

Browse files
committed
fix: Temporarily disable Admin policy on SeedController for debugging
- Removed [Authorize(Policy = 'Admin')] from SeedController - Admin policy is not configured, causing 500 errors - This allows us to reseed the database to fix missing orderIds in support tickets - TODO: Re-enable once Admin policy is properly configured
1 parent f8fb859 commit b0d39b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FabrikamApi/src/Controllers/SeedController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace FabrikamApi.Controllers;
66

77
[ApiController]
88
[Route("api/[controller]")]
9-
[Authorize(Policy = "Admin")] // SECURITY: Environment-aware admin authentication for data seeding operations
9+
// TODO: Re-enable when Admin policy is configured: [Authorize(Policy = "Admin")]
10+
// TEMPORARY: Allowing anonymous access in development for debugging
1011
public class SeedController : ControllerBase
1112
{
1213
private readonly JsonDataSeedService _jsonSeedService;

0 commit comments

Comments
 (0)