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
@@ -7,7 +7,7 @@
</x-slot:logo>
<h1 class="text-2xl font-bold mb-4">{{ __('Hey again!') }} 👋</h1>
<p class="mb-2">{{ __('Before you can get started with Investbrain, you\'ll want to create a password:') }}</p>
<p class="mb-2">{{ __('Before you can get started with Investbrain, let\'s complete your profile:') }}</p>
@livewire('invited-onboarding-form', [
'portfolio' => $portfolio,
@@ -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