Files
OwnCord/Server/migrations/004_fix_member_permissions.sql
T
jevb 25449eb204 feat: redesign login UI, add save-password, fix permissions, add audit logging, member_join broadcast
- Redesign ConnectPage with modern dark theme, profile cards with delete buttons, login/register toggle
- Add DPAPI-encrypted password saving with "Remember my password" checkbox
- Fix permission bit constants to match SCHEMA.md (Member role 0x663)
- Add migration 004 to fix existing Member role permissions
- Add comprehensive audit logging across all server packages (auth, admin, ws, setup)
- Add member_join WebSocket broadcast so new users appear in members list in real-time
- Add host URL normalization (strip scheme prefix) for reverse proxy compatibility
- Add REST API client, ChatService orchestrator, WebSocket service with reconnection
- Add model types (WsEnvelope payloads, API responses), converters, tests
2026-03-15 00:31:39 +01:00

7 lines
401 B
SQL

-- Migration 004: Fix Member role permissions
-- The Member role was missing READ_MESSAGES (0x2), ATTACH_FILES (0x20),
-- and ADD_REACTIONS (0x40) bits. Also had MUTE_MEMBERS which is mod-level.
-- New value: 0x663 = SEND_MESSAGES | READ_MESSAGES | ATTACH_FILES |
-- ADD_REACTIONS | CONNECT_VOICE | SPEAK_VOICE
UPDATE roles SET permissions = 1635 WHERE id = 4 AND name = 'Member';