Directus / @directus/sdk / rest / readItemPermissions
Function: readItemPermissions() ​
readItemPermissions<
Schema
,Collection
>(collection
,key
?):RestCommand
<ReadItemPermissionsOutput
,Schema
>
Check the current user's permissions on a specific item.
Type Parameters ​
• Schema
• Collection extends string
| number
| symbol
Parameters ​
• collection: Collection
The collection of the item
• key?: string
| number
The primary key of the item
Returns ​
RestCommand
<ReadItemPermissionsOutput
, Schema
>
Returns a ItemPermissions object if a valid collection / primary key was provided.