Hide sub-users page when logged in as non-main user.

This commit is contained in:
arabcoders
2025-05-19 16:55:06 +03:00
parent 689f688405
commit 0102f56a36

View File

@@ -59,7 +59,8 @@
<span>Plex Token</span>
</NuxtLink>
<NuxtLink class="navbar-item" to="/tools/sub_users" @click.native="(e) => changeRoute(e)">
<NuxtLink class="navbar-item" to="/tools/sub_users" @click.native="(e) => changeRoute(e)"
v-if="'main' === api_user">
<span class="icon"><i class="fas fa-users"/></span>
<span>Sub Users</span>
</NuxtLink>
@@ -270,6 +271,8 @@ const showSettings = ref(false)
const auth = useAuthStore()
const bg_enable = useStorage('bg_enable', true)
const bg_opacity = useStorage('bg_opacity', 0.95)
const api_user = useStorage('api_user', 'main')
const api_version = ref()
const bgImage = ref({src: '', type: ''})
const loadedImages = ref({poster: '', background: ''})