tests:adds testing to portfolio access policy

This commit is contained in:
hackerESQ
2024-10-22 22:24:39 -05:00
parent 5a04c33f13
commit d53d1a3ed3
8 changed files with 287 additions and 5 deletions
@@ -126,6 +126,7 @@ new class extends Component {
</label>
<div class="border-primary border rounded-sm px-2 py-5 mb-2">
@if ($portfolio->owner)
<x-list-item
:item="$portfolio->owner"
avatar="profile_photo_url"
@@ -145,6 +146,7 @@ new class extends Component {
{{ __('Owner') }}
</x-slot:sub-value>
</x-list-item>
@endif
@foreach (collect($this->portfolio?->users)->where('pivot.owner', '!=', 1) as $user)
<x-list-item