Merge pull request #122 from asimons04/LocalAdminModAll

Allow instance admins access to the "Moderation" menu for federated posts/comments
This commit is contained in:
Xylight authored and GitHub committed 2023-08-24 23:17:39 +00:00
commit 2c3865ee30
2 files changed
+6 -6

No files matched your search

@@ -30,9 +30,9 @@
>
<ShieldIcon filled width={14} />
</Button>
{#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user) && item.community.local)}
{#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user))}
<li class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
Moderation
Moderation {#if (!item.community.local) } (Instance Only) {/if}
</li>
<MenuButton color="success" on:click={() => remove(item)}>
<Icon src={Trash} size="16" mini />
@@ -44,7 +44,7 @@
</MenuButton>
{#if $profile?.user && $profile.user?.local_user_view.person.id != item.creator.id}
<span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
User
User {#if (!item.community.local) } (Instance Only) {/if}
</span>
<MenuButton
color="dangerSecondary"
@@ -112,9 +112,9 @@
/>
</svg>
</Button>
{#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user) && item.community.local)}
{#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user))}
<span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
Moderation
Moderation {#if (!item.community.local) } (Instance Only) {/if}
</span>
<MenuButton
color="warning"
@@ -156,7 +156,7 @@
</MenuButton>
{#if $profile?.user && $profile.user.local_user_view.person.id != item.creator.id}
<span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
User
User {#if (!item.community.local) } (Instance Only) {/if}
</span>
<MenuButton
color="dangerSecondary"