feat(blog): allow ROLE_IMPORTER to create drafts and access review queue
This commit is contained in:
+7
-2
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user