mirror of
https://github.com/OHV-IT/collabrix.git
synced 2025-12-16 09:08:36 +01:00
- Implement unread message indicators with Material-UI icons - Add BlinkingEnvelope component with theme-compatible colors - Create UnreadMessagesContext for managing unread states - Integrate WebSocket message handling for real-time notifications - Icons only appear for inactive channels/DMs, disappear when opened - Add test functionality (double-click to mark as unread) - Fix WebSocket URL handling for production deployment - Unify WebSocket architecture using presence connection for all messages
27 lines
676 B
Python
27 lines
676 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Script to set Ronny's role to SUPERADMIN
|
|
"""
|
|
import sys
|
|
import os
|
|
|
|
# Add parent directory to path to import app modules
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
from sqlalchemy import text
|
|
from app.database import engine
|
|
|
|
|
|
def set_ronny_superadmin():
|
|
"""Set Ronny's role to SUPERADMIN"""
|
|
with engine.connect() as conn:
|
|
# Update Ronny's role
|
|
conn.execute(text("""
|
|
UPDATE "user" SET role = 'SUPERADMIN' WHERE username = 'Ronny'
|
|
"""))
|
|
conn.commit()
|
|
print("✅ Ronny's role updated to SUPERADMIN")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
set_ronny_superadmin() |