fix: prevent null workspace_id in tenant_permissions #116
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/tenant-permissions-workspace-id-session-1771192503"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds workspace_id to the TenantPermission::updateOrCreate(...) payload and gates persistence when $tenant->workspace_id is null: TenantPermissionService.php
Updates/extends tests so this is covered:
Persists with workspace even if events are disabled
Does not persist at all when tenant workspace is missing
TenantPermissionServiceTest.php
Summary
Spec-Driven Development (SDD)
specs/<NNN>-<feature>/plan.md,tasks.md,spec.mdImplementation
Tests
./vendor/bin/sail artisan testoderphp artisan test)Migration / Config / Ops (falls relevant)
.env.example/ Doku)UI (Filament/Livewire) (falls relevant)
Notes