fix AI-326 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Adjusted permission checks for viewing histories and chats to require read access instead of update access on documents. <!-- end of auto-generated comment: release notes by coderabbit.ai -->