allowVisit(path) Last updated: 27. Oct 2025
API only function
Checks if the current user has access to the specified file or folder. Only applicable for sites with authentication enabled.
Parameters
| Name | Type | Description |
|---|---|---|
| path | String | Absolute path to file or folder. |
Returns
True if curent user has access, False if no access / item not found.
Example
Code example (JS)
JS is normal JavaScript either running in the browser or on the Docly™ server.if (docly.allowVisit("test file"))
{
return "Access allowed";
}