feat(blog): allow ROLE_IMPORTER to create drafts and access review queue

This commit is contained in:
hamed
2026-07-24 20:19:25 +03:30
parent c729bb13e0
commit 1a9eda3576
3 changed files with 72 additions and 8 deletions
+7 -2
View File
@@ -130,7 +130,12 @@ Get a single blog post by slug.
Create a new blog post.
**Permission:** `ROLE_ADMIN`
**Permission:** `ROLE_ADMIN`, or `ROLE_IMPORTER` (the content pipeline's system user).
> A caller that is **not** `ROLE_ADMIN` always produces a review-gated draft: whatever
> `status` / `review_status` it sends, the post is stored as `status=draft`,
> `review_status=pending_review`. Approving/publishing stays `ROLE_ADMIN`-only via
> `POST /api/v1/admin/blog/{uuid}/review`.
### Request Body (`application/json`)
```json
@@ -294,7 +299,7 @@ The content pipeline (`clinicpro-crawler/content/`) generates Persian health art
List blog drafts awaiting review, newest first.
**Permission:** `ROLE_ADMIN`
**Permission:** `ROLE_ADMIN` or `ROLE_IMPORTER` (read-only; the crawler panel shows this queue).
### Query Parameters
| Param | Type | Required | Default | Description |