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/Utility | |
| 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/Utility')
| -rw-r--r-- | src/lib/Utility/privilegedUser.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/Utility/privilegedUser.ts b/src/lib/Utility/privilegedUser.ts new file mode 100644 index 00000000..769032b9 --- /dev/null +++ b/src/lib/Utility/privilegedUser.ts @@ -0,0 +1,5 @@ +import authorisedJson from '$lib/Data/Static/authorised.json'; + +const privilegedUser = (id: number) => authorisedJson.includes(id); + +export default privilegedUser; |