refactor is_instance_admin

This commit is contained in:
Andras Bacsai
2023-08-14 16:56:13 +02:00
parent f8506f9d20
commit 952d335789
9 changed files with 29 additions and 16 deletions

View File

@@ -25,7 +25,7 @@
<body>
@livewireScripts
<x-toaster-hub />
@if (auth()->user()->isInstanceAdmin() || is_subscription_in_grace_period())
@if (is_instance_admin() || is_subscription_in_grace_period())
<div class="fixed top-3 left-4" id="vue">
<magic-bar></magic-bar>
</div>

View File

@@ -51,7 +51,7 @@
</a>
</li>
<div class="flex-1"></div>
@if (auth()->user()->isInstanceAdmin())
@if (is_instance_admin())
<livewire:upgrade />
@endif
<li title="Profile">
@@ -79,7 +79,7 @@
</svg>
</a>
</li>
@if (auth()->user()->isInstanceAdmin())
@if (is_instance_admin())
<li title="Settings" class="mt-auto">
<a class="hover:bg-transparent" @if (!request()->is('settings')) href="/settings" @endif>
<svg xmlns="http://www.w3.org/2000/svg"