fix: uses docPermissions to show/hide x button on media collection doc fileDetails - #2428

This commit is contained in:
Jarrod Flesch
2023-04-10 15:40:46 -04:00
committed by GitHub
parent 13cc669e2c
commit 7f2c3d1d0a
2 changed files with 6 additions and 3 deletions

View File

@@ -166,7 +166,6 @@ The `useDocumentInfo` hook provides lots of information about the document curre
|---------------------------|--------------------------------------------------------------------------------------------------------------------| |
| **`collection`** | If the doc is a collection, its collection config will be returned |
| **`global`** | If the doc is a global, its global config will be returned |
| **`type`** | The type of document being edited (collection or global) |
| **`id`** | If the doc is a collection, its ID will be returned |
| **`preferencesKey`** | The `preferences` key to use when interacting with document-level user preferences |
| **`versions`** | Versions of the current doc |