Es gibt nun task collections und vordefinierte tasks für alle. Onboarding verfeinert und webseite-carousel gefixt (logging später entfernen!)
24 lines
566 B
PHP
24 lines
566 B
PHP
<?php
|
|
|
|
namespace App\Filament\Tenant\Resources\TaskCollectionResource\Pages;
|
|
|
|
use App\Filament\Tenant\Resources\TaskCollectionResource;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class EditTaskCollection extends EditRecord
|
|
{
|
|
protected static string $resource = TaskCollectionResource::class;
|
|
|
|
protected function authorizeAccess(): void
|
|
{
|
|
parent::authorizeAccess();
|
|
|
|
$record = $this->getRecord();
|
|
|
|
if ($record->tenant_id !== Auth::user()?->tenant_id) {
|
|
abort(403);
|
|
}
|
|
}
|
|
}
|