Limit where were respond to test messages
This commit is contained in:
@@ -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'));
|
||||
|
Reference in New Issue
Block a user