Is the given field editable by the current user in their user profile?
Usage
// basic usage
$bool = $pagePermissions->userFieldEditable($name);
// usage with all arguments
$bool = $pagePermissions->userFieldEditable($name, $user = null);
Arguments
Name | Type(s) | Description |
---|---|---|
name | Field, string | Field or Field name |
user (optional) |
Return value
bool
PagePermissions methods and properties
API reference based on ProcessWire core version 3.0.236