All checks were successful
CI / lint-and-test (push) Successful in 22s
- Introduced a new roles table in the database to manage user roles ('user' and 'admin') for access control.
- Updated the user model to include a foreign key reference to the roles table, allowing for role assignment.
- Enhanced command handlers to support the `/set_role` command for admins to assign roles to users.
- Refactored access control logic to utilize role checks instead of username/phone allowlists, improving security and maintainability.
- Updated documentation to reflect changes in access control mechanisms and role management.
- Added unit tests to ensure correct functionality of role assignment and access checks.
63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
README.md
|
|
pyproject.toml
|
|
duty_teller/__init__.py
|
|
duty_teller/config.py
|
|
duty_teller/run.py
|
|
duty_teller.egg-info/PKG-INFO
|
|
duty_teller.egg-info/SOURCES.txt
|
|
duty_teller.egg-info/dependency_links.txt
|
|
duty_teller.egg-info/entry_points.txt
|
|
duty_teller.egg-info/requires.txt
|
|
duty_teller.egg-info/top_level.txt
|
|
duty_teller/api/__init__.py
|
|
duty_teller/api/app.py
|
|
duty_teller/api/calendar_ics.py
|
|
duty_teller/api/dependencies.py
|
|
duty_teller/api/personal_calendar_ics.py
|
|
duty_teller/api/telegram_auth.py
|
|
duty_teller/db/__init__.py
|
|
duty_teller/db/models.py
|
|
duty_teller/db/repository.py
|
|
duty_teller/db/schemas.py
|
|
duty_teller/db/session.py
|
|
duty_teller/handlers/__init__.py
|
|
duty_teller/handlers/commands.py
|
|
duty_teller/handlers/common.py
|
|
duty_teller/handlers/errors.py
|
|
duty_teller/handlers/group_duty_pin.py
|
|
duty_teller/handlers/import_duty_schedule.py
|
|
duty_teller/i18n/__init__.py
|
|
duty_teller/i18n/core.py
|
|
duty_teller/i18n/lang.py
|
|
duty_teller/i18n/messages.py
|
|
duty_teller/importers/__init__.py
|
|
duty_teller/importers/duty_schedule.py
|
|
duty_teller/services/__init__.py
|
|
duty_teller/services/group_duty_pin_service.py
|
|
duty_teller/services/import_service.py
|
|
duty_teller/utils/__init__.py
|
|
duty_teller/utils/dates.py
|
|
duty_teller/utils/handover.py
|
|
duty_teller/utils/user.py
|
|
tests/test_api_dependencies.py
|
|
tests/test_app.py
|
|
tests/test_calendar_ics.py
|
|
tests/test_calendar_token_repository.py
|
|
tests/test_config.py
|
|
tests/test_db_session.py
|
|
tests/test_duty_schedule_parser.py
|
|
tests/test_group_duty_pin_service.py
|
|
tests/test_handlers_commands.py
|
|
tests/test_handlers_errors.py
|
|
tests/test_handlers_group_duty_pin.py
|
|
tests/test_handlers_init.py
|
|
tests/test_i18n.py
|
|
tests/test_import_duty_schedule_integration.py
|
|
tests/test_import_service.py
|
|
tests/test_package_init.py
|
|
tests/test_personal_calendar_ics.py
|
|
tests/test_repository_duty_range.py
|
|
tests/test_repository_roles.py
|
|
tests/test_run.py
|
|
tests/test_telegram_auth.py
|
|
tests/test_utils.py |