@@ -11,6 +11,7 @@ use App\Models\DeviceModel;
|
||||
use App\Models\DeviceType;
|
||||
use App\Models\DeviceVendor;
|
||||
use App\Models\TenantDevicePolicy;
|
||||
use App\Services\LicenseEntitlementService;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -54,6 +55,7 @@ class DeviceController extends Controller
|
||||
public function store(StoreDeviceRequest $request): RedirectResponse
|
||||
{
|
||||
$this->authorizeCreate();
|
||||
app(LicenseEntitlementService::class)->assertCanAddDevice($request->user()->tenant_id);
|
||||
$this->validateModelCombination($request);
|
||||
$data = $request->validated();
|
||||
$username = $data['initial_username'];
|
||||
|
||||
Reference in New Issue
Block a user