chg: [permissionlimitation:validation] Added rule for max_occurence
parent
d1aa20c5fb
commit
409c116ad7
|
@ -22,6 +22,7 @@ class PermissionLimitationsTable extends AppTable
|
|||
$validator
|
||||
->notEmptyString('permission')
|
||||
->notEmptyString('scope')
|
||||
->naturalNumber('max_occurrence', __('That field can only hold non-negative values.'))
|
||||
->requirePresence(['permission', 'scope', 'max_occurrence'], 'create');
|
||||
return $validator;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue