The parameters for retrieving document permissions. This includes:
doctype: The type of document for which permissions are being retrieved.docname: The name or identifier of the document for which permissions are being checked.A promise that resolves to the permissions of the document. The returned permissions include the actions that the current user can perform on the document, such as 'read', 'write', 'create', 'delete', etc.
Retrieves the permissions for a specific document.
This function performs an asynchronous request to the server to fetch the permissions associated with a document of the specified type. The permissions returned indicate what actions the current user can perform on the given document.
Example
Example
Example
Throws
Throws an error if the request fails or if there is an issue with retrieving the permissions.