nordabiz/blueprints/board/__init__.py
Maciej Pienczyn 650c0d5760
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
feat: Add Strefa RADA - closed section for Board Council members
- Add @rada_member_required decorator for access control
- Add BoardDocument model for storing protocols and documents
- Create document upload service (PDF, DOCX, DOC up to 50MB)
- Add /rada/ blueprint with list, upload, download endpoints
- Add "Rada" link in navigation (visible only for board members)
- Add "Rada" badge and toggle button in admin user management
- Create SQL migration to set up board_documents table and assign
  is_rada_member=True to 16 board members by email

Storage: /data/board-docs/ (outside webroot for security)
Access: is_rada_member=True OR role >= OFFICE_MANAGER

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 18:41:12 +01:00

17 lines
376 B
Python

"""
Board Blueprint (Rada Izby)
===========================
Strefa RADA - zamknięta sekcja dla członków Rady Izby.
Protokoły, uchwały i dokumenty z posiedzeń Rady.
URL prefix: /rada
Access: is_rada_member = True OR role >= OFFICE_MANAGER
"""
from flask import Blueprint
bp = Blueprint('board', __name__, url_prefix='/rada')
from . import routes # noqa: F401, E402