rest\Action $checkAccess

$checkAccess public property

A PHP callable that will be called when running an action to determine if the current user has the permission to execute the action. If not set, the access check will not be performed. The signature of the callable should be as follows,

function ($action, $model = null) {
    // $model is the requested model instance.
    // If null, it means no specific model (e.g. IndexAction)
}
public callable $checkAccess = null
doc_Yii
2016-10-30 17:10:59
Comments
Leave a Comment

Please login to continue.