mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
chore(admin): remove user type toggles (#3161)
This commit is contained in:
@@ -89,7 +89,6 @@ export const AdminACLs = {
|
||||
USER_VIEW_EMAIL: 'user:view:email',
|
||||
USER_VIEW_IP: 'user:view:ip',
|
||||
USER_TEMP_BAN: 'user:temp_ban',
|
||||
USER_UPDATE_BOT_STATUS: 'user:update:bot_status',
|
||||
USER_UPDATE_DOB: 'user:update:dob',
|
||||
USER_UPDATE_EMAIL: 'user:update:email',
|
||||
USER_UPDATE_FLAGS: 'user:update:flags',
|
||||
@@ -106,3 +105,9 @@ export const AdminACLs = {
|
||||
VOICE_SERVER_LIST: 'voice:server:list',
|
||||
VOICE_SERVER_UPDATE: 'voice:server:update',
|
||||
} as const;
|
||||
|
||||
const KNOWN_ADMIN_ACLS: ReadonlySet<string> = new Set(Object.values(AdminACLs));
|
||||
|
||||
export function filterKnownAdminACLs(acls: Iterable<string>): Array<string> {
|
||||
return Array.from(acls).filter((acl) => KNOWN_ADMIN_ACLS.has(acl));
|
||||
}
|
||||
|
||||
@@ -208,7 +208,6 @@ export const ValidationErrorCodes = {
|
||||
URL_NOT_PUBLICLY_ROUTABLE: 'URL_NOT_PUBLICLY_ROUTABLE',
|
||||
USER_DOES_NOT_HAVE_AN_EMAIL_ADDRESS: 'USER_DOES_NOT_HAVE_AN_EMAIL_ADDRESS',
|
||||
USER_IS_NOT_BANNED: 'USER_IS_NOT_BANNED',
|
||||
USER_MUST_BE_A_BOT_TO_BE_MARKED_AS_A_SYSTEM_USER: 'USER_MUST_BE_A_BOT_TO_BE_MARKED_AS_A_SYSTEM_USER',
|
||||
USER_NOT_IN_CHANNEL: 'USER_NOT_IN_CHANNEL',
|
||||
USERNAME_CANNOT_CONTAIN_RESERVED_TERMS: 'USERNAME_CANNOT_CONTAIN_RESERVED_TERMS',
|
||||
USERNAME_CHANGED_TOO_MANY_TIMES: 'USERNAME_CHANGED_TOO_MANY_TIMES',
|
||||
|
||||
Reference in New Issue
Block a user