Skip to content

Commit af39dee

Browse files
committed
fix(knowledge): gate document tags menu item on edit permission
Matches the existing disableRename/disableDelete/disableToggleEnabled pattern; the document detail breadcrumb already hides its Tags entry for non-editors the same way.
1 parent f0c0448 commit af39dee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/knowledge/[id]

apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ export function KnowledgeBase({
14301430
: undefined
14311431
}
14321432
onViewTags={
1433-
contextMenuDocument && selectedDocuments.size === 1
1433+
contextMenuDocument && selectedDocuments.size === 1 && userPermissions.canEdit
14341434
? () => handleViewDocumentTags(contextMenuDocument)
14351435
: undefined
14361436
}

0 commit comments

Comments
 (0)