mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
fix authorized apps settings, redesign, fix retro theme vars (#6900)
* fix authorized apps settings, redesign, fix retro theme vars * merge * fix: retro in app --------- Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
This commit is contained in:
@@ -13,3 +13,17 @@ export const isAdmin = (user) => {
|
||||
}
|
||||
|
||||
export const STAFF_ROLES = ['moderator', 'admin']
|
||||
|
||||
export const MODRINTH_USER_ID = '2REoufqX'
|
||||
export const AUTOMOD_USER_ID = ''
|
||||
export const MODRINTH_ARCHIVES_USER_ID = 'GVFjtWTf'
|
||||
|
||||
export const OFFICIAL_ACCOUNT_IDS = [MODRINTH_USER_ID, AUTOMOD_USER_ID, MODRINTH_ARCHIVES_USER_ID]
|
||||
|
||||
export const isModrinthUser = (userId) => {
|
||||
return userId === MODRINTH_USER_ID
|
||||
}
|
||||
|
||||
export const isOfficialAccount = (userId) => {
|
||||
return OFFICIAL_ACCOUNT_IDS.includes(userId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user