fix: use Auth(), add new db proxy stop event refactor clickhouse view
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<tr @class([
|
||||
'dark:text-white text-black dark:bg-coolblack dark:hover:bg-coolgray-100',
|
||||
'dark:bg-coolgray-100 bg-neutral-200' => $member->id == auth()->user()->id,
|
||||
'dark:bg-coolgray-100 bg-neutral-200' => $member->id == Auth::id(),
|
||||
])>
|
||||
<td class="px-5 py-4 text-sm whitespace-nowrap">
|
||||
{{ $member->name }}
|
||||
@@ -12,9 +12,9 @@
|
||||
{{ data_get($member, 'pivot.role') }}
|
||||
</td>
|
||||
<td class="flex gap-2 px-5 py-4 text-sm whitespace-nowrap">
|
||||
@if (auth()->user()->isAdminFromSession())
|
||||
@if ($member->id !== auth()->user()->id)
|
||||
@if (auth()->user()->isOwner())
|
||||
@if (Auth::user()->isAdminFromSession())
|
||||
@if ($member->id !== Auth::id())
|
||||
@if (Auth::user()->isOwner())
|
||||
@if (data_get($member, 'pivot.role') === 'owner')
|
||||
<x-forms.button wire:click="makeAdmin">To Admin</x-forms.button>
|
||||
<x-forms.button wire:click="makeReadonly">To Member</x-forms.button>
|
||||
@@ -30,7 +30,7 @@
|
||||
<x-forms.button wire:click="makeAdmin">To Admin</x-forms.button>
|
||||
<x-forms.button isError wire:click="remove">Remove</x-forms.button>
|
||||
@endif
|
||||
@elseif (auth()->user()->isAdmin())
|
||||
@elseif (Auth::user()->isAdmin())
|
||||
@if (data_get($member, 'pivot.role') === 'admin')
|
||||
<x-forms.button wire:click="makeReadonly">To Member</x-forms.button>
|
||||
<x-forms.button isError wire:click="remove">Remove</x-forms.button>
|
||||
|
||||
Reference in New Issue
Block a user