Server admin: hide "Delete community" for the instance stock community #725

Open
opened 2026-11-15 23:44:13 +00:00 by charles · 0 comments
Owner

Spec §3.2: "Delete community" shows to the owner only, and never for the instance stock community (fluxer_app/src/features/guild/utils/GuildCommunityUtils.ts isStockCommunityGuild: RuntimeConfig.singleCommunityEnabled && singleCommunityGuildId === guildId).

The native discovery does not read InstanceCommunitySchema.single_community / single_community_guild_id (openapi.json), so admin::perms::can_delete_guild (Task 9b, #676) checks ownership only. Fix: read those fields in discovery (fluxer-proto WellKnown + session) and add the condition in can_delete_guild.

Seen on branch serveradmin-9b-core-hierarchy-bulk-events (92d0fc0e). Only matters on a single-community instance.

Spec §3.2: "Delete community" shows to the owner only, and never for the instance stock community (`fluxer_app/src/features/guild/utils/GuildCommunityUtils.ts` `isStockCommunityGuild`: `RuntimeConfig.singleCommunityEnabled && singleCommunityGuildId === guildId`). The native discovery does not read `InstanceCommunitySchema.single_community` / `single_community_guild_id` (openapi.json), so `admin::perms::can_delete_guild` (Task 9b, #676) checks ownership only. Fix: read those fields in discovery (fluxer-proto WellKnown + session) and add the condition in `can_delete_guild`. Seen on branch serveradmin-9b-core-hierarchy-bulk-events (92d0fc0e). Only matters on a single-community instance.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#725
No description provided.