feat(acl): Change views/backend code to able to use proper ACL's later on. Currently it is not enabled.

This commit is contained in:
Andras Bacsai
2025-08-26 10:27:31 +02:00
parent 5a88377a67
commit 63fcc0ebc3
159 changed files with 3610 additions and 1922 deletions

View File

@@ -12,7 +12,7 @@
{{ data_get($member, 'pivot.role') }}
</td>
<td class="flex gap-2 px-5 py-4 text-sm whitespace-nowrap">
@if (Auth::user()->isAdminFromSession())
@can('manageMembers', currentTeam())
@if ($member->id !== Auth::id())
@if (Auth::user()->isOwner())
@if (data_get($member, 'pivot.role') === 'owner')
@@ -43,6 +43,10 @@
@else
<div>(This is you)</div>
@endif
@endif
@else
@if ($member->id === Auth::id())
<div>(This is you)</div>
@endif
@endcan
</td>
</tr>