Limit where were respond to test messages

This commit is contained in:
2023-09-12 17:20:09 +10:00
parent 560bc2f8cb
commit 99866458a4
6 changed files with 63 additions and 11 deletions

View File

@@ -22,11 +22,12 @@ class EchoareaController extends Controller
'description' => 'required',
'active' => 'required|boolean',
'show' => 'required|boolean',
'automsgs' => 'required|boolean',
'sec_read' => 'required|integer|min:0|max:7',
'sec_write' => 'required|integer|min:0|max:7',
]);
foreach (['name','description','active','show','notes','domain_id'] as $key)
foreach (['name','description','active','show','notes','domain_id','automsgs'] as $key)
$o->{$key} = $request->post($key);
$o->setRead($request->post('sec_read'));