fix: handle unauthorized document move error (#1884)

This commit is contained in:
Catalin Pit
2025-07-16 07:45:12 +03:00
committed by GitHub
parent 32a5d33a16
commit c47dc8749a
2 changed files with 11 additions and 1 deletions

View File

@ -188,7 +188,7 @@ export const DocumentsTableActionDropdown = ({
<Trans>Duplicate</Trans>
</DropdownMenuItem>
{onMoveDocument && (
{onMoveDocument && canManageDocument && (
<DropdownMenuItem onClick={onMoveDocument} onSelect={(e) => e.preventDefault()}>
<FolderInput className="mr-2 h-4 w-4" />
<Trans>Move to Folder</Trans>