Skip to content

Conversation

@kelvink96
Copy link
Member

No description provided.

claude and others added 2 commits November 20, 2025 19:28
The AntdProjectsController requires Permissions.Antd.Projects permission,
but this permission (along with all other Antd permissions) was defined in
Constants/Permissions.cs but never assigned to any roles or users in the seeders.

This caused 403 Forbidden errors when demo/normal users tried to access
Antd endpoints like /api/v1/antd/projects, even though they could access
other Antd endpoints that only required [Authorize] (like tasks).

Changes:
- Added all Permissions.Antd.* permissions to Admin role in PermissionUpdateSeeder
- Added all Permissions.Antd.* permissions to User role in PermissionUpdateSeeder
- Added all Permissions.Antd.* permissions to admin user in UserPermissionUpdateSeeder
- Added all Permissions.Antd.* permissions to normal users in UserPermissionUpdateSeeder

After restarting the application, the seeders will automatically update
existing users with these new permissions.
@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2025

⚠️ No Changeset found

Latest commit: 51f386a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

kelvink96 and others added 13 commits November 20, 2025 22:42
- Add AntdEmployee entity with employee fields (name, role, age, email, country, salary, hire date)
- Create AntdEmployeeDto with query params, statistics, and response types
- Implement IAntdEmployeeService with GetAll, GetById, GetStatistics, Create, Update, Delete
- Add AntdEmployeesController with REST endpoints
- Configure entity indexes and precision in ApplicationDbContext
- Add Permissions.Antd.Employees permission constant
- Register AntdEmployeeService in Program.cs
- Add 10 sample employee records to AntdDataSeeder
- Includes diverse roles, countries, and salary ranges
- Seeds data on application startup if table is empty
- Add AntdFaq entity with question, answer, category, rating, views, tags
- Create AntdFaqDto with query params, statistics, and response types
- Implement IAntdFaqService with GetAll, GetById, GetFeatured, GetStatistics, Create, Update, Delete
- Add AntdFaqsController with REST endpoints including featured FAQs
- Configure entity indexes and precision in ApplicationDbContext
- Add Permissions.Antd.Faqs permission constant
- Register AntdFaqService in Program.cs
- Add 10 sample FAQ records to AntdDataSeeder covering Shipping, Payment, Returns, Support, Orders, Product, Pricing, and Security categories
- Add AntdPricing entity with plan, monthly, annually, savings caption, features, color, preferred
- Create AntdPricingDto with query params and response types
- Implement IAntdPricingService with GetAll, GetById, GetByPlan, Create, Update, Delete
- Add AntdPricingsController with REST endpoints including plan-based lookup
- Store features array as newline-separated string in database, convert to/from List<string> in service
- Configure entity indexes and precision in ApplicationDbContext
- Add Permissions.Antd.Pricings permission constant
- Register AntdPricingService in Program.cs
- Add 10 diverse pricing plan seed records: free, pro, business, enterprise, starter, team, premium, developer, agency, lifetime
- Plans range from $0-$99.99/month and $0-$1999.99/annually with various feature sets
- Add AntdLicense entity with title and description
- Create AntdLicenseDto with query params and response types
- Implement IAntdLicenseService with GetAll, GetById, GetByTitle, Create, Update, Delete
- Add AntdLicensesController with REST endpoints including title-based lookup
- Configure entity indexes in ApplicationDbContext
- Add Permissions.Antd.Licenses permission constant
- Register AntdLicenseService in Program.cs
- Add 3 license seed records: free, pro, and enterprise plans
- Each license includes comprehensive terms for personal, commercial, and large-scale use
…ames

- Add [Tags] attributes to 16 controllers that were missing them
- Use consistent naming pattern: "Antd - [Readable Name]" with proper spacing
- Updated controllers:
  * Social Media Activities/Stats
  * Scheduled Posts
  * Recommended Courses
  * Live Auctions
  * Delivery Analytics
  * Exams, Courses
  * Community Groups
  * Bidding Top Sellers/Transactions
  * Auction Creators
  * Study Statistics
  * Truck Deliveries/Delivery Requests/Trucks
- Improves API documentation organization in Swagger/Scalar UI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants