Skip to main content

Bug #451 — Admin: Training schedule save returns 403 Forbidden

Issue: #451 Reporter: Kang-Supreeya Date: 2026-02-19 Severity: Critical Frequency: Always


Description

Admin: เมนู จัดการการอบรม > เพิ่มแผนการอบรม กดบันทึกขึ้น Error

System Admin cannot create a new training schedule. Clicking "บันทึก" (Save) after filling out the form returns a 403 Forbidden error from the API.

Location

System Admin > เครื่องมือ > จัดการอบรม > เพิ่มแผนการอบรม

Bug Details

AreaExpectedActual
POST /api/training-schedules/create200 OK (schedule created)403 Forbidden

Steps to Reproduce

  1. Login as System Admin
  2. Go to เครื่องมือ > จัดการอบรม
  3. Click เพิ่มแผนการอบรม
  4. Fill form (e.g., name "ทดสอบ", capacity 30, time 09:00-12:00, location "ตึกเอ")
  5. Click บันทึก
  6. Observe — Error 403 Forbidden

Screenshots

Bug #451 Screenshot

What to Test

#Test CaseStatus
1Admin creates new training schedule → Saved successfully Pending
2Non-admin role → Correctly returns 403 Pending