fix! убрана политика на авторизованноо пользователя в форме создания агентства

This commit is contained in:
Thekindbull 2025-11-12 20:05:12 +08:00
parent 4a9f232723
commit c8845f2e96

View File

@ -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'))