Files
OwnCord/Server/migrations/007_member_video_permissions.sql
T
jevb fa1435e4de fix: address critical and high code review findings
- C-1: handle filepath.Abs error in backup path traversal guards
- C-2: WAL checkpoint before live DB restore to prevent corruption
- C-4: default AllowedOrigins to empty (deny cross-origin by default)
- C-5: renumber duplicate 003_ migration prefix (003-008 -> 003-009)
- H-1: sanitize FTS5 query input to prevent operator injection
- H-3: send SIGTERM for graceful shutdown before os.Exit in updater
- H-9: fix RingBuffer memory leak from unbounded backing array growth
- H-10: use errorResponse struct consistently in upload handler
2026-03-31 18:46:33 +02:00

7 lines
397 B
SQL

-- Migration 006: Add video and screenshare permissions to Member role
-- Member was missing USE_VIDEO (0x800) and SHARE_SCREEN (0x1000).
-- New value: 0x1E63 = SEND_MESSAGES | READ_MESSAGES | ATTACH_FILES |
-- ADD_REACTIONS | CONNECT_VOICE | SPEAK_VOICE |
-- USE_VIDEO | SHARE_SCREEN
UPDATE roles SET permissions = 7779 WHERE id = 4 AND name = 'Member';