mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
- 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
7 lines
401 B
SQL
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';
|