Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit ·
a4c08a4
1
Parent(s): 50d145d
fix: allow superadmin to edit and delete articles in KB UI
Browse files
frontend/apps/internal/src/components/KnowledgeBase.tsx
CHANGED
|
@@ -6,8 +6,8 @@ import { api, useAuth, computeDiff, useNotification, NexusMarkdown } from '@nexu
|
|
| 6 |
import styles from './KnowledgeBase.module.css';
|
| 7 |
|
| 8 |
// Pre-defined role groups for UI visibility
|
| 9 |
-
const SHRED_ROLES = ['3sc_admin', '3sc_lead', '3sc_agent'];
|
| 10 |
-
const EDIT_ROLES = ['3sc_admin', '3sc_lead', '3sc_agent'];
|
| 11 |
|
| 12 |
interface KBArticle {
|
| 13 |
id: string;
|
|
|
|
| 6 |
import styles from './KnowledgeBase.module.css';
|
| 7 |
|
| 8 |
// Pre-defined role groups for UI visibility
|
| 9 |
+
const SHRED_ROLES = ['superadmin', '3sc_admin', '3sc_lead', '3sc_agent'];
|
| 10 |
+
const EDIT_ROLES = ['superadmin', '3sc_admin', '3sc_lead', '3sc_agent'];
|
| 11 |
|
| 12 |
interface KBArticle {
|
| 13 |
id: string;
|