Gate DocumentWorkspaceView / DocumentUploadView / DocumentDetailView and WS PromptType.RAG with assert_feature_allowed(user, "rag"). Standard users get clear feature_not_allowed responses.
Acceptance
Document REST endpoints refuse Standard
RAG chat path refuses Standard before retrieval
Entitled plans succeed
Tests cover allow/deny
Parent: [#42](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/42)
Depends on: allows_rag entitlement field.
## Summary
Gate `DocumentWorkspaceView` / `DocumentUploadView` / `DocumentDetailView` and WS `PromptType.RAG` with `assert_feature_allowed(user, "rag")`. Standard users get clear `feature_not_allowed` responses.
## Acceptance
- [ ] Document REST endpoints refuse Standard
- [ ] RAG chat path refuses Standard before retrieval
- [ ] Entitled plans succeed
- [ ] Tests cover allow/deny
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Parent: #42
Depends on: allows_rag entitlement field.
Summary
Gate
DocumentWorkspaceView/DocumentUploadView/DocumentDetailViewand WSPromptType.RAGwithassert_feature_allowed(user, "rag"). Standard users get clearfeature_not_allowedresponses.Acceptance