mirror of
https://github.com/btouchard/ackify-ce.git
synced 2026-01-21 05:19:53 -06:00
Add new configuration option ACKIFY_ONLY_ADMIN_CAN_CREATE (default: false) to control who can create documents. Backend changes: - Add OnlyAdminCanCreate config field to AppConfig - Implement authorization checks in document handlers - Protect POST /documents and GET /documents/find-or-create endpoints - Add unit tests for admin-only document creation (4 tests) Frontend changes: - Inject ACKIFY_ONLY_ADMIN_CAN_CREATE to window object - Hide DocumentForm component for non-admin users when enabled - Add i18n translations (en, fr, es, de, it) - Display warning message for non-admin users Documentation: - Update .env.example files with new variable - Update configuration docs (en/fr) - Update install script to prompt for restriction option - Update install/README.md When enabled, only users listed in ACKIFY_ADMIN_EMAILS can create new documents. Both direct creation and find-or-create endpoints are protected.
Ackify Documentation
Complete documentation for Ackify - Proof of Read with cryptographic signatures.
🇬🇧 English Documentation | 🇫🇷 Documentation Française
Quick Links
🇬🇧 English
🇫🇷 Français
Contributing
See Development Guide (English) or Guide de Développement (Français).