Objective:
Allow an admin user to reject a submitted artwork, optionally providing a rejection reason. Rejected artwork should not be publicly visible. Log the rejection in AdminAction.
Tasks:
Acceptance Criteria:
- ✅ Only admins can reject artwork.
- ✅ Artwork status and rejection reason are updated.
- ✅ AdminAction is created with correct metadata.
- ✅ Response contains updated artwork.
Resources:
- Prisma Artwork and AdminAction models
- NextAuth session
Objective:
Allow an admin user to reject a submitted artwork, optionally providing a rejection reason. Rejected artwork should not be publicly visible. Log the rejection in AdminAction.
Tasks:
status = REJECTEDrejection_reasonaction_type = ARTWORK_REJECTEDadmin_id = adminIdartwork_id = idAcceptance Criteria:
Resources: