fix! убрана политика на авторизованноо пользователя в форме создания агентства
This commit is contained in:
parent
4a9f232723
commit
c8845f2e96
@ -15,10 +15,6 @@ class CreateCompanyFormController extends Controller
|
||||
*/
|
||||
public function __invoke(Request $request)
|
||||
{
|
||||
if ($request->user()->cannot('create', Company::class))
|
||||
{
|
||||
abort(403, 'Unauthorized action');
|
||||
}
|
||||
$type = false;
|
||||
$city_id = false;
|
||||
if ($request->has('type'))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user