diff options
| author | Fuwn <[email protected]> | 2024-11-18 19:34:30 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-11-18 19:34:36 -0800 |
| commit | 43ecb0640c085971a77f243d72b9d62d961feecd (patch) | |
| tree | 1907adb4220b1a4df1b958b848317b5dcc1cacb3 /src/lib/List/Manga | |
| parent | fix(CleanAnimeList): completed total chapter count calculation (diff) | |
| download | due.moe-43ecb0640c085971a77f243d72b9d62d961feecd.tar.xz due.moe-43ecb0640c085971a77f243d72b9d62d961feecd.zip | |
refactor(authorised): move authorised user functionality to module
Diffstat (limited to 'src/lib/List/Manga')
| -rw-r--r-- | src/lib/List/Manga/MangaListTemplate.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte index 1303419f..d1a6a944 100644 --- a/src/lib/List/Manga/MangaListTemplate.svelte +++ b/src/lib/List/Manga/MangaListTemplate.svelte @@ -12,7 +12,6 @@ import ListTitle from '../ListTitle.svelte'; import Error from '$lib/Error/RateLimited.svelte'; import CleanMangaList from './CleanMangaList.svelte'; - import authorisedJson from '$lib/Data/Static/authorised.json'; import { incrementMediaProgress } from '$lib/Media/Anime/cache'; import { getNotificationsContext } from 'svelte-notifications'; import { options } from '$lib/Notification/options'; @@ -20,6 +19,7 @@ import locale from '$stores/locale'; import { browser } from '$app/environment'; import identity from '$stores/identity'; + import privilegedUser from '$lib/Utility/privilegedUser'; export let user: AniListAuthorisation = { accessToken: '', @@ -32,7 +32,7 @@ export let dummy = $settings.debugDummyLists || false; const { addNotification } = getNotificationsContext(); - const authorised = authorisedJson.includes($identity.id); + const authorised = privilegedUser($identity.id); let mangaLists: Promise<Media[]>; let startTime: number; let endTime: number; |