ProcessPageEditImageSelect::checkImageEditPermission()
Check if user has image edit permission and throw exception if they don't
Usage
// basic usage
$bool = $processPageEditImageSelect->checkImageEditPermission();
// usage with all arguments
$bool = $processPageEditImageSelect->checkImageEditPermission(bool $throw = true);Arguments
| Name | Type(s) | Description |
|---|---|---|
$throw (optional) | bool | Specify false if you only want this method to return a true|false rather than throw exception |
Return value
boolif the $throw argument was false
Exceptions
Method can throw exceptions on error:
WirePermissionException
ProcessPageEditImageSelect methods and properties
API reference based on ProcessWire core version 3.0.253