mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(admin,api): restrict community creation on self-hosted (#3055)
This commit is contained in:
1 parent
ab4069ed0e
commit
ca719e7b5e
95 files changed
+508
-13
No files matched your search
@@ -9,6 +9,7 @@ export const LIMIT_KEYS = [
|
||||
'feature_custom_notification_sounds',
|
||||
'feature_early_access',
|
||||
'feature_global_expressions',
|
||||
'feature_guild_create',
|
||||
'feature_higher_video_quality',
|
||||
'feature_per_guild_profiles',
|
||||
'feature_voice_entrance_sounds',
|
||||
@@ -58,6 +59,7 @@ export const LIMIT_KEY_SCOPES: Record<LimitKey, LimitScope> = {
|
||||
feature_custom_notification_sounds: 'user',
|
||||
feature_early_access: 'user',
|
||||
feature_global_expressions: 'user',
|
||||
feature_guild_create: 'user',
|
||||
feature_higher_video_quality: 'user',
|
||||
feature_per_guild_profiles: 'user',
|
||||
feature_voice_entrance_sounds: 'user',
|
||||
@@ -473,6 +475,14 @@ export const LIMIT_KEY_METADATA: Record<LimitKey, LimitKeyMetadata> = {
|
||||
scope: 'user',
|
||||
isToggle: true,
|
||||
},
|
||||
feature_guild_create: {
|
||||
key: 'feature_guild_create',
|
||||
label: 'Community Creation Access',
|
||||
description: 'Create communities while the instance restricts community creation',
|
||||
category: 'features',
|
||||
scope: 'user',
|
||||
isToggle: true,
|
||||
},
|
||||
feature_higher_video_quality: {
|
||||
key: 'feature_higher_video_quality',
|
||||
label: 'Higher Video Quality',
|
||||
|
||||
Reference in new issue
Block a user