PagePermissions::userEditable()

Returns whether the given page ($page) is editable by the current user

Usage

// basic usage
$bool = $pagePermissions->userEditable(Page $page);

// usage with all arguments
$bool = $pagePermissions->userEditable(Page $page, array $options = []);

Arguments

NameType(s)Description
$pagePage
$options (optional)array
  • viewable (bool): Specify true if only a viewable check is needed Default:false
  • processName (string): Name of Process module to consider for context. 3.0.244+ Default:''

Return value

bool


PagePermissions methods and properties

API reference based on ProcessWire core version 3.0.251