allowModify(path) Last updated: 28. Oct 2025

API only function

Checks if the current user has access to modify specified file or folder in Docly. 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";
}