- Implemented role-based access control for project and scenario routes. - Added authorization checks to ensure users have appropriate roles for viewing and managing projects and scenarios. - Introduced utility functions for ensuring project and scenario access based on user roles. - Refactored project and scenario routes to utilize new authorization helpers. - Created initial data seeding script to set up default roles and an admin user. - Added tests for authorization helpers and initial data seeding functionality. - Updated exception handling to include authorization errors.
12 lines
311 B
Plaintext
12 lines
311 B
Plaintext
# Example environment variables for CalMiner
|
|
|
|
# PostgreSQL connection settings
|
|
DATABASE_DRIVER=postgresql
|
|
DATABASE_HOST=localhost
|
|
DATABASE_PORT=5432
|
|
DATABASE_USER=<user>
|
|
DATABASE_PASSWORD=<password>
|
|
DATABASE_NAME=calminer
|
|
# Optional: set a schema (comma-separated for multiple entries)
|
|
# DATABASE_SCHEMA=public
|