If you have not many statuses for player (0 or 1)
You can make it easy:
if ($this->request->data[‘ControllerName’]['player] != 1) {
$this->ControllerName->validator()->remove(‘validationRuleName’);
}
If you have not many statuses for player (0 or 1)
You can make it easy:
if ($this->request->data[‘ControllerName’]['player] != 1) {
$this->ControllerName->validator()->remove(‘validationRuleName’);
}