Skip to content

Add /disablecommunity and /enablecommunity commands for superadmins #804

Description

@mostronatorcoder

Add two new superadmin-only commands to control whether a community is active or not:

• /disablecommunity
• /enablecommunity

Implementation requirements:

• Add a new field to the community.ts model: enabled: boolean.
• When enabled is true, the community behaves normally.
• When enabled is false, the community must remain in the database but be completely inaccessible to:
• regular users
• community admins
• orders and any related flows

In practice, a disabled community should behave as if it does not exist from the user's perspective.

The /enablecommunity command should allow a superadmin to restore a previously disabled community, making it fully usable again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions