Returns whether the given user ($page) is viewable by the current user
Usage
// basic usage
$bool = $pagePermissions->userViewable($page);
// usage with all arguments
$bool = $pagePermissions->userViewable($page, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
page | User, Page | |
options (optional) | array |
Return value
bool
Exceptions
Method can throw exceptions on error:
WireException
PagePermissions methods and properties
API reference based on ProcessWire core version 3.0.236