openedx-authz 3.0.0__tar.gz → 3.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/CHANGELOG.rst +1 -0
- {openedx_authz-3.0.0/src/openedx_authz.egg-info → openedx_authz-3.2.0}/PKG-INFO +1 -1
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/concepts/core_roles_and_permissions/course_roles.rst +45 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0022-defer-authorization-implications.rst +7 -0
- openedx_authz-3.2.0/docs/decisions/0034-permission-dependencies-in-authorization-schema.rst +162 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/references/compiled-schema.yaml +151 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/enrollments/README.rst +6 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/enrollments/__init__.py +1 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/enrollments/constants.py +26 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/enrollments/schema/permissions.yaml +36 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/enrollments/schema/role_extensions.yaml +15 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_administration/README.rst +6 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_administration/__init__.py +1 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_administration/constants.py +38 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_administration/schema/permissions.yaml +60 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_administration/schema/role_extensions.yaml +19 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_grading/README.rst +6 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_grading/__init__.py +1 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_grading/constants.py +20 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_grading/schema/permissions.yaml +28 -0
- openedx_authz-3.2.0/src/openedx_authz/applets/learner_grading/schema/role_extensions.yaml +13 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/authz/__init__.py +12 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/constants/permissions.py +3 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/applets/test_builtin_definitions.py +9 -0
- openedx_authz-3.2.0/src/openedx_authz/tests/applets/test_instructor_dashboard_permissions.py +88 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/authz/test_resources.py +3 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/role_permissions.py +14 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_discovery.py +6 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_imports.py +3 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0/src/openedx_authz.egg-info}/PKG-INFO +1 -1
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz.egg-info/SOURCES.txt +17 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz.egg-info/scm_file_list.json +17 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/uv.lock +385 -210
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.annotation_safe_list.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.editorconfig +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/dependabot.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/workflows/add-depr-ticket-to-depr-board.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/workflows/add-remove-label-on-comment.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/workflows/ci.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/workflows/commitlint.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/workflows/release.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/workflows/self-assign-issue.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.github/workflows/upgrade-python-requirements.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.gitignore +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.pii_annotations.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/.readthedocs.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/LICENSE +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/MANIFEST.in +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/Makefile +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/README.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/catalog-info.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/codecov.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/Makefile +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/_images/architecture-overview.png +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/_static/theme_overrides.css +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/changelog.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/concepts/core_roles_and_permissions/content_library_roles.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/concepts/core_roles_and_permissions/index.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/concepts/index.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/conf.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0001-purpose-of-this-repo.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0002-authorization-model-foundation.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0003-jwt-usage.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0004-technology-selection.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0005-architecture-and-data-modeling.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0007-enforcement-mechanisms-mfe.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0008-compatibility-scheme.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0009-authz-for-course-authoring.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0010-course-authoring-flag.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0011-course-authoring-migration-process.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0012-auditability.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0012-glob-support-for-role-assignments.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0013-course-authoring-automatic-migration.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0014-bulk-assignment-queries-without-casbin-enforce.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0015-expose-course-authoring-waffle-flag-state-via-rest-api.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0016-static-and-dynamic-roles.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0017-static-authorization-schema.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0018-authorization-schema-lifecycle.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0019-authorization-schema-discovery.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0020-authorization-schema-internationalization.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0021-authorization-definition-api.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0023-extend-static-roles.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0024-api-contract-for-user-grouped-role-assignments.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0025-authorization-schema-source-tracking.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0026-rest-api-domain-ownership-boundary.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0027-cross-domain-filtering-via-openedx-filters.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0028-api-contract-for-role-catalog.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0029-paragon-icon-list-maintenance.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0030-tutor-implementation-authz-schema-discovery.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0031-priority-applies-to-role-extensions-only.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0032-applets-for-built-in-authorization-capabilities.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0033-shared-applet-for-course-team-roles.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/README.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/getting_started.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/how-tos/index.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/how-tos/use-built-in-constants.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/index.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/internationalization.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/make.bat +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/quickstarts/index.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/readme.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/references/authorization-schema-json.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/references/authorization-schema.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/references/built-in-constants.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/references/compiled-schema.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/references/index.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/testing.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/manage.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/pylintrc +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/pylintrc_tweaks +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/pyproject.toml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/ruff.toml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/scripts/generate_compiled_schema.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/scripts/generate_paragon_icons.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/setup.cfg +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/admin.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/api/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/api/catalog.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/api/data.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/api/permissions.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/api/roles.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/api/users.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/api/utils.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/content_libraries/README.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/content_libraries/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/content_libraries/constants.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/content_libraries/schema/permissions.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/content_libraries/schema/roles.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_authoring/README.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_authoring/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_authoring/constants.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_authoring/schema/permissions.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_authoring/schema/role_extensions.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_team_roles/README.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_team_roles/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_team_roles/constants.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_team_roles/schema/legacy_permissions.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/applets/course_team_roles/schema/roles.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/apps.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/conf/locale/config.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/constants/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/constants/roles.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/constants/schema.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/data.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/adapter.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/apps.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/config/model.conf +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/enforcer.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/filter.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/matcher.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/policy.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/renderer.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/authz-schema-v1.json +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/compilation.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/discovery.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/exceptions.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/issues.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/loading.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/paragon_icons.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/parsing.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/pipeline.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/snapshot.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/syntax.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/translation.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/types/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/types/compilation.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/types/definitions.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/types/loading.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/schema/validation.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/engine/utils.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/filters.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/handlers.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/management/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/management/commands/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/management/commands/authz_migrate_course_authoring.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/management/commands/authz_rollback_course_authoring.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/management/commands/enforcement.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/management/commands/extract_schema_translations.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/management/commands/load_authz_schema.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/management/commands/load_policies.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0001_add_casbin_dependency.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0002_initial.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0003_usersubject.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0004_contentlibraryscope.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0005_policycachecontrol.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0006_migrate_legacy_permissions.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0007_coursescope.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0008_authzcourseauthoringmigrationrun.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0009_roleassignmentaudit.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0010_scope_external_key.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0011_authz_schema_definitions.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/0012_move_builtin_schema_sources_to_applets.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/migrations/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/models/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/models/authz_migration.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/models/base.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/models/core.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/models/engine.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/models/schema.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/models/scopes.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/models/subjects.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/data.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/decorators.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/urls.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/utils.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/admin_console/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/admin_console/filters.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/admin_console/serializers.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/admin_console/views.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/course_authoring/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/course_authoring/pipeline.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/course_authoring/views.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/fields.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/paginators.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/permissions.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/serializers.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/urls.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/rest_api/v1/views.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/settings/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/settings/common.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/settings/production.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/settings/test.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/templates/openedx_authz/base.html +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/api/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/api/test_catalog.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/api/test_data.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/api/test_roles.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/api/test_users.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/applets/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/authz/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/conftest.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_compiled/categories.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_compiled/extensions.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_compiled/permissions.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_compiled/roles.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_parse/malformed.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_semantics/unknown_category.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_structure/items.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_structure/priority.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/valid/categories.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/valid/extensions.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/valid/permissions.yml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/valid/roles.yaml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/test_handlers.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/test_models.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/test_schema_apply.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/test_schema_pipeline.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/integration/test_views.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/admin_console/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/admin_console/test_views.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/course_authoring/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/course_authoring/test_pipeline.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/course_authoring/test_views.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/mixins.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/test_permissions.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/test_utils.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/rest_api/test_views.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/factories.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_apply.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_compilation.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_json_schema.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_load_authz_schema_command.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_loading.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_parsing.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_pipeline.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_renderer.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_schema_models.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_snapshot.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_source_storage.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_syntax.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_translation.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_types.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/schema/test_validation.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/stubs/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/stubs/apps.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/stubs/migrations/0001_initial.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/stubs/migrations/0002_learningpackage_contentlibrary_learning_package.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/stubs/migrations/0002_userprofile.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/stubs/models.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_commands.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_enforcement.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_enforcer.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_engine_utils.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_filter.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_handlers.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_migrations.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_models.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_policy.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/tests/test_utils.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/urls.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz/utils.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz.egg-info/dependency_links.txt +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz.egg-info/entry_points.txt +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz.egg-info/requires.txt +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/src/openedx_authz.egg-info/top_level.txt +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tox.ini +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/.gitignore +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/LICENSE.txt +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/MANIFEST.in +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/Makefile +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/README.rst +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/pyproject.toml +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/tutor_authz/__about__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/tutor_authz/__init__.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/tutor_authz/patches/openedx-common-settings +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/tutor_authz/plugin.py +0 -0
- {openedx_authz-3.0.0 → openedx_authz-3.2.0}/tutor/tutor-contrib-authz/tutor_authz/templates/apps/openedx/config/authz-schema.yml +0 -0
|
@@ -51,6 +51,7 @@ Added
|
|
|
51
51
|
against the set of names exported by ``@openedx/paragon/icons``, vendored in
|
|
52
52
|
``openedx_authz/engine/schema/paragon_icons.py`` and regenerated with
|
|
53
53
|
``make paragon_icons`` (ADR 0029).
|
|
54
|
+
* Added the Instructor Dashboard permissions from issue #484 for course information, enrollments, learner grading, learner extensions, and cohorts. The ``enrollments``, ``learner_grading``, and ``learner_administration`` applets define them and add them to the ``course_admin`` and ``course_staff`` roles.
|
|
54
55
|
|
|
55
56
|
Changed
|
|
56
57
|
========
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openedx-authz
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.2.0
|
|
4
4
|
Summary: Open edX AuthZ provides the architecture and foundations of the authorization framework.
|
|
5
5
|
Author-email: Open edX Project <oscm@openedx.org>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
@@ -97,6 +97,31 @@ Import / Export
|
|
|
97
97
|
- **Export course** (``courses.export_course``): Allows users to export course content.
|
|
98
98
|
- **Export tags** (``courses.export_tags``): Allows users to export tags.
|
|
99
99
|
|
|
100
|
+
Course Information
|
|
101
|
+
==================
|
|
102
|
+
- **View course info** (``courses.view_course_info``): Allows users to view general course information and enrollment counts.
|
|
103
|
+
|
|
104
|
+
Enrollments
|
|
105
|
+
===========
|
|
106
|
+
- **View enrollments** (``courses.view_enrollments``): Allows users to view and search course enrollments and check a learner's enrollment status.
|
|
107
|
+
- **Enroll learners** (``courses.enroll_learners``): Allows users to enroll learners in the course, individually or in bulk.
|
|
108
|
+
- **Unenroll learners** (``courses.unenroll_learners``): Allows users to remove learners' enrollments from the course.
|
|
109
|
+
|
|
110
|
+
Learner Grading
|
|
111
|
+
===============
|
|
112
|
+
- **View gradebook** (``courses.view_gradebook``): Allows users to view grades for learners enrolled in the course.
|
|
113
|
+
- **Manage learner grading** (``courses.manage_learner_grading``): Allows users to use grading tools for an individual learner or all learners, including viewing learner progress, resetting attempts, rescoring submissions, overriding scores, and deleting learner problem state.
|
|
114
|
+
|
|
115
|
+
Learner Extensions
|
|
116
|
+
==================
|
|
117
|
+
- **View learner extensions** (``courses.view_learner_extensions``): Allows users to view and search learner extensions and their extended due dates.
|
|
118
|
+
- **Manage learner extensions** (``courses.manage_learner_extensions``): Allows users to grant or modify individual learner extensions and reset due dates to the course default.
|
|
119
|
+
|
|
120
|
+
Cohorts
|
|
121
|
+
=======
|
|
122
|
+
- **View cohorts** (``courses.view_cohorts``): Allows users to view course cohorts, their configuration, and their members.
|
|
123
|
+
- **Manage cohorts** (``courses.manage_cohorts``): Allows users to enable, create, and configure cohorts, and to assign or move learners between cohorts.
|
|
124
|
+
|
|
100
125
|
Other
|
|
101
126
|
=====
|
|
102
127
|
- **View checklists** (``courses.view_checklists``): Allows users to view checklists.
|
|
@@ -167,6 +192,26 @@ Roles and Permissions Summary Table
|
|
|
167
192
|
courses.view_group_configurations ✅ ✅ ✅ ✅
|
|
168
193
|
courses.manage_group_configurations ✅ ✅ ✅ ❌
|
|
169
194
|
courses.manage_course_team ✅ ❌ ❌ ❌
|
|
195
|
+
**Course Information**
|
|
196
|
+
--------------------------------------------- -------------- -------------- --------------------- --------------
|
|
197
|
+
courses.view_course_info ✅ ✅ ❌ ❌
|
|
198
|
+
**Enrollments**
|
|
199
|
+
--------------------------------------------- -------------- -------------- --------------------- --------------
|
|
200
|
+
courses.view_enrollments ✅ ✅ ❌ ❌
|
|
201
|
+
courses.enroll_learners ✅ ✅ ❌ ❌
|
|
202
|
+
courses.unenroll_learners ✅ ✅ ❌ ❌
|
|
203
|
+
**Learner Grading**
|
|
204
|
+
--------------------------------------------- -------------- -------------- --------------------- --------------
|
|
205
|
+
courses.view_gradebook ✅ ✅ ❌ ❌
|
|
206
|
+
courses.manage_learner_grading ✅ ✅ ❌ ❌
|
|
207
|
+
**Learner Extensions**
|
|
208
|
+
--------------------------------------------- -------------- -------------- --------------------- --------------
|
|
209
|
+
courses.view_learner_extensions ✅ ✅ ❌ ❌
|
|
210
|
+
courses.manage_learner_extensions ✅ ✅ ❌ ❌
|
|
211
|
+
**Cohorts**
|
|
212
|
+
--------------------------------------------- -------------- -------------- --------------------- --------------
|
|
213
|
+
courses.view_cohorts ✅ ✅ ❌ ❌
|
|
214
|
+
courses.manage_cohorts ✅ ✅ ❌ ❌
|
|
170
215
|
**Other**
|
|
171
216
|
--------------------------------------------- -------------- -------------- --------------------- --------------
|
|
172
217
|
courses.view_checklists ✅ ✅ ✅ ✅
|
{openedx_authz-3.0.0 → openedx_authz-3.2.0}/docs/decisions/0022-defer-authorization-implications.rst
RENAMED
|
@@ -52,6 +52,11 @@ Static role-permission policies moved from ``authz.policy`` to the authorization
|
|
|
52
52
|
|
|
53
53
|
New installations no longer load the default ``g2`` relationships that were stored in ``authz.policy``. `Issue #91`_ and `Issue #523`_ track defining permission dependencies in the authorization schema.
|
|
54
54
|
|
|
55
|
+
Addendum: Permission Dependencies (2026-11-04)
|
|
56
|
+
==============================================
|
|
57
|
+
|
|
58
|
+
`ADR 0034`_ adds permission dependencies to schema version 1.1 through an optional ``depends_on`` field, and the renderer generates the ``g2`` rows from it. That ADR replaces the permission-implication part of this decision. Role inheritance remains deferred.
|
|
59
|
+
|
|
55
60
|
Rejected Alternatives
|
|
56
61
|
*********************
|
|
57
62
|
|
|
@@ -69,9 +74,11 @@ References
|
|
|
69
74
|
**********
|
|
70
75
|
|
|
71
76
|
* `ADR 0017`_
|
|
77
|
+
* `ADR 0034`_
|
|
72
78
|
* `Issue #91`_
|
|
73
79
|
* `Issue #523`_
|
|
74
80
|
|
|
75
81
|
.. _ADR 0017: 0017-static-authorization-schema.rst
|
|
82
|
+
.. _ADR 0034: 0034-permission-dependencies-in-authorization-schema.rst
|
|
76
83
|
.. _Issue #91: https://github.com/openedx/openedx-authz/issues/91
|
|
77
84
|
.. _Issue #523: https://github.com/openedx/openedx-authz/issues/523
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
0034: Define Permission Dependencies in the Authorization Schema
|
|
2
|
+
################################################################
|
|
3
|
+
|
|
4
|
+
Status
|
|
5
|
+
******
|
|
6
|
+
|
|
7
|
+
**Draft**
|
|
8
|
+
|
|
9
|
+
Context
|
|
10
|
+
*******
|
|
11
|
+
|
|
12
|
+
Before `PR #538`_, ``authz.policy`` declared permission dependencies as Casbin ``g2`` rows. For example, ``g2, act^content_libraries.edit_library_content, act^content_libraries.view_library`` meant that editing library content requires viewing the library. That PR moved static roles and permissions into the authorization schema (`ADR 0017`_) and removed the policy file, but the schema had no field for dependencies, so new installations no longer load them.
|
|
13
|
+
|
|
14
|
+
The Custom Roles feature needs these dependencies for two reasons:
|
|
15
|
+
|
|
16
|
+
* When an administrator enables a permission, the UI also selects every permission it depends on. When an administrator disables a permission that other selected permissions depend on, the UI warns first and then also disables those permissions.
|
|
17
|
+
* The ``g2`` rows must be generated from the schema rather than from a policy file.
|
|
18
|
+
|
|
19
|
+
`ADR 0022`_ deferred permission implication and listed what a later schema version must define before adding it. This ADR adds permission dependencies and covers those points.
|
|
20
|
+
|
|
21
|
+
Decision
|
|
22
|
+
********
|
|
23
|
+
|
|
24
|
+
1. Syntax
|
|
25
|
+
=========
|
|
26
|
+
|
|
27
|
+
A permission may declare an optional ``depends_on`` list with the complete IDs of the permissions it directly requires. A dependency means that granting the permission also grants the permissions it depends on. For example, granting ``edit_library_content`` also grants ``view_library``, because a user cannot edit the content of a library they cannot view.
|
|
28
|
+
|
|
29
|
+
.. code-block:: yaml
|
|
30
|
+
|
|
31
|
+
permissions:
|
|
32
|
+
- namespace: content_libraries
|
|
33
|
+
name: edit_library_content
|
|
34
|
+
display_name: Edit
|
|
35
|
+
# ...
|
|
36
|
+
scopes:
|
|
37
|
+
- lib
|
|
38
|
+
depends_on:
|
|
39
|
+
- content_libraries.view_library
|
|
40
|
+
|
|
41
|
+
Only the file that defines a permission declares its dependencies. Role extensions cannot add or remove dependencies.
|
|
42
|
+
|
|
43
|
+
2. Schema version
|
|
44
|
+
=================
|
|
45
|
+
|
|
46
|
+
``depends_on`` is allowed only in files that declare ``schema_version: "1.1"``. The field stays optional in ``1.1``, so a ``1.1`` file that declares no ``depends_on`` is valid and means the same as it would in ``1.0``. Files that declare ``"1.0"`` keep their current meaning, and a ``1.0`` file that declares ``depends_on`` is rejected as an unknown field.
|
|
47
|
+
|
|
48
|
+
``1.0`` and ``1.1`` files are a supported combination. The "unsupported combinations of schema versions" check in `ADR 0017`_ does not reject a deployment that loads both, so a file can move to ``1.1`` without requiring every other file to move with it. For example, ``library_permissions.yaml`` can declare ``1.1`` and ``depends_on``, while ``library_roles.yaml`` stays at ``1.0``.
|
|
49
|
+
|
|
50
|
+
Version ``1.1`` has its own JSON Schema file, ``authz-schema-v1.1.json``, next to the existing ``authz-schema-v1.json``. The existing file keeps ``"const": "1.0"`` and does not change, so tools that validate ``1.0`` files continue to work. The ``1.1`` file accepts everything ``1.0`` accepts and adds the optional ``depends_on`` field. The validator selects the JSON Schema file from the ``schema_version`` that each file declares.
|
|
51
|
+
|
|
52
|
+
3. Validation
|
|
53
|
+
=============
|
|
54
|
+
|
|
55
|
+
Validation rejects:
|
|
56
|
+
|
|
57
|
+
* a dependency on a permission that is not defined;
|
|
58
|
+
* a permission that depends on itself, or a dependency cycle;
|
|
59
|
+
* a dependency whose scope namespaces do not include every scope namespace of the dependent permission; and
|
|
60
|
+
* a role whose resolved permissions, after role extensions are applied, include a permission but not all of its direct and indirect dependencies.
|
|
61
|
+
|
|
62
|
+
The last rule means a role always lists every permission it grants, and a ``remove_permissions`` extension cannot remove a dependency that another permission on the role still needs. It applies to roles and role extensions in every file, regardless of the ``schema_version`` the file declares.
|
|
63
|
+
|
|
64
|
+
4. Casbin representation
|
|
65
|
+
========================
|
|
66
|
+
|
|
67
|
+
The renderer creates one ``g2`` row for each direct dependency:
|
|
68
|
+
|
|
69
|
+
.. code-block:: text
|
|
70
|
+
|
|
71
|
+
g2, act^content_libraries.edit_library_content, act^content_libraries.view_library
|
|
72
|
+
|
|
73
|
+
The renderer owns these rows and adds, adopts, and removes them the same way it handles ``p`` rows (`ADR 0018`_, `ADR 0025`_). ``model.conf`` and its matcher do not change.
|
|
74
|
+
|
|
75
|
+
For schema roles, the validation in section 3 already makes ``g2`` rows redundant, because every role lists its dependencies. The rows are still rendered because:
|
|
76
|
+
|
|
77
|
+
* Roles that do not pass through schema validation, such as roles stored only in the database and ``p`` rows that no schema declares, can still be missing a dependency. The ``g2`` row grants the dependency, so a permission on such a role still works.
|
|
78
|
+
* The matcher already checks ``g2``, and existing installations already store these rows, so authorization decisions stay the same as before `PR #538`_.
|
|
79
|
+
* The dependencies stay in the Casbin policy, where tools that read the policy, such as the ``enforcement`` management command, can see them.
|
|
80
|
+
|
|
81
|
+
5. Definition storage
|
|
82
|
+
=====================
|
|
83
|
+
|
|
84
|
+
The loader stores each direct dependency as one row that links a permission definition to the permission it depends on, next to the definition tables from `ADR 0025`_. Each row corresponds to one rendered ``g2`` row, in the same way each stored role-permission grant corresponds to one ``p`` row. The row has no scope, because ``g2`` rows have none.
|
|
85
|
+
|
|
86
|
+
Dependencies do not have their own source records. Only the file that defines a permission declares its dependencies, so a dependency's source is the permission's source. Two files that define the same permission with different dependencies are a base-definition conflict, which validation rejects (`ADR 0031`_).
|
|
87
|
+
|
|
88
|
+
The renderer uses these rows to decide which ``g2`` rows it owns:
|
|
89
|
+
|
|
90
|
+
* A stored ``g2`` row that matches a rendered one, such as a row loaded from ``authz.policy`` before `PR #538`_, is adopted without being rewritten.
|
|
91
|
+
* A stored ``g2`` row that no schema declares stays in place and unattributed, like unmanaged ``p`` rows.
|
|
92
|
+
* When a dependency leaves the schema, or its permission is removed, the renderer removes the dependency row and its ``g2`` row in the same transaction.
|
|
93
|
+
|
|
94
|
+
6. API
|
|
95
|
+
======
|
|
96
|
+
|
|
97
|
+
The role catalog (`ADR 0028`_) returns each permission's direct ``depends_on`` list. Clients compute indirect dependencies when they need them. Because of the role rule in section 3, a role's listed permissions are the same as the permissions it grants, so the API does not need to separate direct and implied permissions.
|
|
98
|
+
|
|
99
|
+
7. UI behavior
|
|
100
|
+
==============
|
|
101
|
+
|
|
102
|
+
The UI uses ``depends_on`` in both directions when an administrator edits the permissions of a custom role:
|
|
103
|
+
|
|
104
|
+
* When the administrator selects a permission, the UI also selects every permission it depends on, directly or indirectly.
|
|
105
|
+
* When the administrator deselects a permission that other selected permissions depend on, the UI warns the administrator before deselecting it. The warning lists the permissions that will also be deselected. If the administrator confirms, the UI deselects the permission and every selected permission that depends on it, directly or indirectly. If the administrator cancels, nothing changes.
|
|
106
|
+
|
|
107
|
+
The UI computes the permissions that depend on a given permission by reversing the ``depends_on`` lists it received from the role catalog (section 6). The role rule in section 3 stays the authoritative check, so a request that leaves a permission selected without its dependencies is rejected by the Custom Roles API regardless of what the UI does.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
Consequences
|
|
111
|
+
************
|
|
112
|
+
|
|
113
|
+
* New installations load library ``g2`` rows again.
|
|
114
|
+
* Schema authors declare dependencies once, on the permission they belong to.
|
|
115
|
+
* A schema that adds a permission to a role without its dependencies fails validation, including a ``1.0`` file that lists a permission to which a ``1.1`` file has added ``depends_on``.
|
|
116
|
+
* ``1.0`` files, and ``1.1`` files that do not use ``depends_on``, keep their current meaning, and ``1.0`` and ``1.1`` files can be loaded together.
|
|
117
|
+
* The repository ships a second JSON Schema file for ``1.1``, which must be kept in sync with ``authz-schema-v1.json`` for the fields they share.
|
|
118
|
+
* Tests check the validation rules and confirm that enforcement results match the explicit role permissions.
|
|
119
|
+
* The Custom Roles API should apply the same role rule to roles that users create.
|
|
120
|
+
|
|
121
|
+
Rejected Alternatives
|
|
122
|
+
*********************
|
|
123
|
+
|
|
124
|
+
Top-level ``permission_dependencies`` section
|
|
125
|
+
=============================================
|
|
126
|
+
|
|
127
|
+
A separate section would let any file add dependencies to a permission it does not own, which would require the override rules that `ADR 0031`_ avoids for base definitions.
|
|
128
|
+
|
|
129
|
+
Dependencies as display metadata only
|
|
130
|
+
=====================================
|
|
131
|
+
|
|
132
|
+
The UI would select dependencies, but Casbin would have no ``g2`` rows. The schema would then not be the full source for the Casbin policy.
|
|
133
|
+
|
|
134
|
+
Role inheritance
|
|
135
|
+
================
|
|
136
|
+
|
|
137
|
+
Inheritance links roles, not permissions. It does not tell the UI which permissions to select together.
|
|
138
|
+
|
|
139
|
+
References
|
|
140
|
+
**********
|
|
141
|
+
|
|
142
|
+
* `ADR 0017`_
|
|
143
|
+
* `ADR 0018`_
|
|
144
|
+
* `ADR 0022`_
|
|
145
|
+
* `ADR 0025`_
|
|
146
|
+
* `ADR 0028`_
|
|
147
|
+
* `ADR 0031`_
|
|
148
|
+
* `Issue #91`_
|
|
149
|
+
* `Issue #523`_
|
|
150
|
+
* `PR #538`_
|
|
151
|
+
* `Casbin RBAC documentation`_
|
|
152
|
+
|
|
153
|
+
.. _ADR 0017: 0017-static-authorization-schema.rst
|
|
154
|
+
.. _ADR 0018: 0018-authorization-schema-lifecycle.rst
|
|
155
|
+
.. _ADR 0022: 0022-defer-authorization-implications.rst
|
|
156
|
+
.. _ADR 0025: 0025-authorization-schema-source-tracking.rst
|
|
157
|
+
.. _ADR 0028: 0028-api-contract-for-role-catalog.rst
|
|
158
|
+
.. _ADR 0031: 0031-priority-applies-to-role-extensions-only.rst
|
|
159
|
+
.. _Issue #91: https://github.com/openedx/openedx-authz/issues/91
|
|
160
|
+
.. _Issue #523: https://github.com/openedx/openedx-authz/issues/523
|
|
161
|
+
.. _PR #538: https://github.com/openedx/openedx-authz/pull/538
|
|
162
|
+
.. _Casbin RBAC documentation: https://casbin.apache.org/docs/rbac#named-role-systems-and-permission-dependencies
|
|
@@ -44,6 +44,19 @@ roles:
|
|
|
44
44
|
- courses.view_schedule_and_details
|
|
45
45
|
course_team_roles:
|
|
46
46
|
- courses.legacy_instructor_role_permissions
|
|
47
|
+
enrollments:
|
|
48
|
+
- courses.enroll_learners
|
|
49
|
+
- courses.unenroll_learners
|
|
50
|
+
- courses.view_enrollments
|
|
51
|
+
learner_administration:
|
|
52
|
+
- courses.manage_cohorts
|
|
53
|
+
- courses.manage_learner_extensions
|
|
54
|
+
- courses.view_cohorts
|
|
55
|
+
- courses.view_course_info
|
|
56
|
+
- courses.view_learner_extensions
|
|
57
|
+
learner_grading:
|
|
58
|
+
- courses.manage_learner_grading
|
|
59
|
+
- courses.view_gradebook
|
|
47
60
|
course_auditor:
|
|
48
61
|
display_name: Course Auditor
|
|
49
62
|
description: Can view course content and settings, but cannot make changes.
|
|
@@ -167,6 +180,19 @@ roles:
|
|
|
167
180
|
- courses.view_schedule_and_details
|
|
168
181
|
course_team_roles:
|
|
169
182
|
- courses.legacy_staff_role_permissions
|
|
183
|
+
enrollments:
|
|
184
|
+
- courses.enroll_learners
|
|
185
|
+
- courses.unenroll_learners
|
|
186
|
+
- courses.view_enrollments
|
|
187
|
+
learner_administration:
|
|
188
|
+
- courses.manage_cohorts
|
|
189
|
+
- courses.manage_learner_extensions
|
|
190
|
+
- courses.view_cohorts
|
|
191
|
+
- courses.view_course_info
|
|
192
|
+
- courses.view_learner_extensions
|
|
193
|
+
learner_grading:
|
|
194
|
+
- courses.manage_learner_grading
|
|
195
|
+
- courses.view_gradebook
|
|
170
196
|
library_admin:
|
|
171
197
|
display_name: Library Admin
|
|
172
198
|
description: The Library Admin has full control over the library, including managing users, modifying content, and handling publishing workflows. They ensure content is properly maintained and accessible as needed.
|
|
@@ -415,6 +441,16 @@ permissions:
|
|
|
415
441
|
scopes:
|
|
416
442
|
- course-v1
|
|
417
443
|
icon: EditOutline
|
|
444
|
+
courses.enroll_learners:
|
|
445
|
+
applet: enrollments
|
|
446
|
+
namespace: courses
|
|
447
|
+
name: enroll_learners
|
|
448
|
+
display_name: Enroll learners
|
|
449
|
+
description: Enroll learners in the course, individually or in bulk.
|
|
450
|
+
category_id: course_enrollments
|
|
451
|
+
scopes:
|
|
452
|
+
- course-v1
|
|
453
|
+
icon: PersonAdd
|
|
418
454
|
courses.export_course:
|
|
419
455
|
applet: course_authoring
|
|
420
456
|
namespace: courses
|
|
@@ -515,6 +551,16 @@ permissions:
|
|
|
515
551
|
scopes:
|
|
516
552
|
- course-v1
|
|
517
553
|
icon: Settings
|
|
554
|
+
courses.manage_cohorts:
|
|
555
|
+
applet: learner_administration
|
|
556
|
+
namespace: courses
|
|
557
|
+
name: manage_cohorts
|
|
558
|
+
display_name: Manage cohorts
|
|
559
|
+
description: Enable cohorts, create and configure cohorts, and assign or move learners between cohorts manually or through CSV uploads.
|
|
560
|
+
category_id: course_cohorts
|
|
561
|
+
scopes:
|
|
562
|
+
- course-v1
|
|
563
|
+
icon: Settings
|
|
518
564
|
courses.manage_course_team:
|
|
519
565
|
applet: course_authoring
|
|
520
566
|
namespace: courses
|
|
@@ -545,6 +591,26 @@ permissions:
|
|
|
545
591
|
scopes:
|
|
546
592
|
- course-v1
|
|
547
593
|
icon: Settings
|
|
594
|
+
courses.manage_learner_extensions:
|
|
595
|
+
applet: learner_administration
|
|
596
|
+
namespace: courses
|
|
597
|
+
name: manage_learner_extensions
|
|
598
|
+
display_name: Manage learner extensions
|
|
599
|
+
description: Grant or modify individual learner extensions and reset due dates to the course default.
|
|
600
|
+
category_id: course_learner_extensions
|
|
601
|
+
scopes:
|
|
602
|
+
- course-v1
|
|
603
|
+
icon: Settings
|
|
604
|
+
courses.manage_learner_grading:
|
|
605
|
+
applet: learner_grading
|
|
606
|
+
namespace: courses
|
|
607
|
+
name: manage_learner_grading
|
|
608
|
+
display_name: Manage learner grading
|
|
609
|
+
description: Use grading tools for an individual learner or all learners. Includes viewing learner progress, resetting attempts, rescoring submissions, overriding scores, deleting learner problem state, and checking task status where available.
|
|
610
|
+
category_id: course_learner_grading
|
|
611
|
+
scopes:
|
|
612
|
+
- course-v1
|
|
613
|
+
icon: Settings
|
|
548
614
|
courses.manage_library_updates:
|
|
549
615
|
applet: course_authoring
|
|
550
616
|
namespace: courses
|
|
@@ -595,6 +661,16 @@ permissions:
|
|
|
595
661
|
scopes:
|
|
596
662
|
- course-v1
|
|
597
663
|
icon: DownloadDone
|
|
664
|
+
courses.unenroll_learners:
|
|
665
|
+
applet: enrollments
|
|
666
|
+
namespace: courses
|
|
667
|
+
name: unenroll_learners
|
|
668
|
+
display_name: Unenroll learners
|
|
669
|
+
description: Remove learners' enrollments from the course.
|
|
670
|
+
category_id: course_enrollments
|
|
671
|
+
scopes:
|
|
672
|
+
- course-v1
|
|
673
|
+
icon: PersonRemove
|
|
598
674
|
courses.view_advanced_settings:
|
|
599
675
|
applet: course_authoring
|
|
600
676
|
namespace: courses
|
|
@@ -625,6 +701,16 @@ permissions:
|
|
|
625
701
|
scopes:
|
|
626
702
|
- course-v1
|
|
627
703
|
icon: RemoveRedEye
|
|
704
|
+
courses.view_cohorts:
|
|
705
|
+
applet: learner_administration
|
|
706
|
+
namespace: courses
|
|
707
|
+
name: view_cohorts
|
|
708
|
+
display_name: View cohorts
|
|
709
|
+
description: View course cohorts, their configuration, and their members.
|
|
710
|
+
category_id: course_cohorts
|
|
711
|
+
scopes:
|
|
712
|
+
- course-v1
|
|
713
|
+
icon: RemoveRedEye
|
|
628
714
|
courses.view_course:
|
|
629
715
|
applet: course_authoring
|
|
630
716
|
namespace: courses
|
|
@@ -635,6 +721,16 @@ permissions:
|
|
|
635
721
|
scopes:
|
|
636
722
|
- course-v1
|
|
637
723
|
icon: RemoveRedEye
|
|
724
|
+
courses.view_course_info:
|
|
725
|
+
applet: learner_administration
|
|
726
|
+
namespace: courses
|
|
727
|
+
name: view_course_info
|
|
728
|
+
display_name: View course info
|
|
729
|
+
description: View general course information and enrollment counts.
|
|
730
|
+
category_id: course_information
|
|
731
|
+
scopes:
|
|
732
|
+
- course-v1
|
|
733
|
+
icon: RemoveRedEye
|
|
638
734
|
courses.view_course_team:
|
|
639
735
|
applet: course_authoring
|
|
640
736
|
namespace: courses
|
|
@@ -655,6 +751,16 @@ permissions:
|
|
|
655
751
|
scopes:
|
|
656
752
|
- course-v1
|
|
657
753
|
icon: RemoveRedEye
|
|
754
|
+
courses.view_enrollments:
|
|
755
|
+
applet: enrollments
|
|
756
|
+
namespace: courses
|
|
757
|
+
name: view_enrollments
|
|
758
|
+
display_name: View enrollments
|
|
759
|
+
description: View and search course enrollments and check a learner's enrollment status.
|
|
760
|
+
category_id: course_enrollments
|
|
761
|
+
scopes:
|
|
762
|
+
- course-v1
|
|
763
|
+
icon: RemoveRedEye
|
|
658
764
|
courses.view_files:
|
|
659
765
|
applet: course_authoring
|
|
660
766
|
namespace: courses
|
|
@@ -665,6 +771,16 @@ permissions:
|
|
|
665
771
|
scopes:
|
|
666
772
|
- course-v1
|
|
667
773
|
icon: RemoveRedEye
|
|
774
|
+
courses.view_gradebook:
|
|
775
|
+
applet: learner_grading
|
|
776
|
+
namespace: courses
|
|
777
|
+
name: view_gradebook
|
|
778
|
+
display_name: View gradebook
|
|
779
|
+
description: View grades for learners enrolled in the course.
|
|
780
|
+
category_id: course_learner_grading
|
|
781
|
+
scopes:
|
|
782
|
+
- course-v1
|
|
783
|
+
icon: RemoveRedEye
|
|
668
784
|
courses.view_grading_settings:
|
|
669
785
|
applet: course_authoring
|
|
670
786
|
namespace: courses
|
|
@@ -685,6 +801,16 @@ permissions:
|
|
|
685
801
|
scopes:
|
|
686
802
|
- course-v1
|
|
687
803
|
icon: RemoveRedEye
|
|
804
|
+
courses.view_learner_extensions:
|
|
805
|
+
applet: learner_administration
|
|
806
|
+
namespace: courses
|
|
807
|
+
name: view_learner_extensions
|
|
808
|
+
display_name: View learner extensions
|
|
809
|
+
description: View and search granted learner extensions and their extended due dates.
|
|
810
|
+
category_id: course_learner_extensions
|
|
811
|
+
scopes:
|
|
812
|
+
- course-v1
|
|
813
|
+
icon: RemoveRedEye
|
|
688
814
|
courses.view_library_updates:
|
|
689
815
|
applet: course_authoring
|
|
690
816
|
namespace: courses
|
|
@@ -726,6 +852,16 @@ categories:
|
|
|
726
852
|
display_name: Advanced & certificates
|
|
727
853
|
description: Permissions for managing advanced course settings and course certificates.
|
|
728
854
|
icon: CheckCircle
|
|
855
|
+
course_cohorts:
|
|
856
|
+
applet: learner_administration
|
|
857
|
+
display_name: Cohorts
|
|
858
|
+
description: Permissions for viewing and managing course cohorts and their members.
|
|
859
|
+
icon: Groups
|
|
860
|
+
course_enrollments:
|
|
861
|
+
applet: enrollments
|
|
862
|
+
display_name: Enrollments
|
|
863
|
+
description: Permissions for viewing course enrollments and for enrolling or unenrolling learners.
|
|
864
|
+
icon: People
|
|
729
865
|
course_files:
|
|
730
866
|
applet: course_authoring
|
|
731
867
|
display_name: Files
|
|
@@ -741,6 +877,21 @@ categories:
|
|
|
741
877
|
display_name: Import / export
|
|
742
878
|
description: Permissions for importing and exporting course content and related data.
|
|
743
879
|
icon: Download
|
|
880
|
+
course_information:
|
|
881
|
+
applet: learner_administration
|
|
882
|
+
display_name: Course information
|
|
883
|
+
description: Permissions for viewing general course information.
|
|
884
|
+
icon: Info
|
|
885
|
+
course_learner_extensions:
|
|
886
|
+
applet: learner_administration
|
|
887
|
+
display_name: Learner extensions
|
|
888
|
+
description: Permissions for viewing and managing due date extensions for individual learners.
|
|
889
|
+
icon: Event
|
|
890
|
+
course_learner_grading:
|
|
891
|
+
applet: learner_grading
|
|
892
|
+
display_name: Learner grading
|
|
893
|
+
description: Permissions for viewing learner grades and using grading tools for individual learners or all learners.
|
|
894
|
+
icon: Grading
|
|
744
895
|
course_legacy:
|
|
745
896
|
applet: course_team_roles
|
|
746
897
|
display_name: Legacy compatibility
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Enrollments
|
|
2
|
+
###########
|
|
3
|
+
|
|
4
|
+
This applet owns the permissions for viewing course enrollments and for enrolling or unenrolling learners, which belong to the Content Access / Enrollments bounded context. It adds those permissions to the ``course_admin`` and ``course_staff`` roles through role extensions. ``constants.py`` contains its permission objects.
|
|
5
|
+
|
|
6
|
+
The applet is an internal package, so clients import these constants from ``openedx_authz.authz``. The existing ``openedx_authz.constants.permissions`` path remains a compatibility export.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Enrollments authorization definitions."""
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Enrollments permission constants."""
|
|
2
|
+
|
|
3
|
+
from openedx_authz.data import ActionData, PermissionData
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"COURSES_VIEW_ENROLLMENTS",
|
|
7
|
+
"COURSES_ENROLL_LEARNERS",
|
|
8
|
+
"COURSES_UNENROLL_LEARNERS",
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
COURSES_NAMESPACE = "courses"
|
|
12
|
+
|
|
13
|
+
COURSES_VIEW_ENROLLMENTS = PermissionData(
|
|
14
|
+
action=ActionData(external_key=f"{COURSES_NAMESPACE}.view_enrollments"),
|
|
15
|
+
effect="allow",
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
COURSES_ENROLL_LEARNERS = PermissionData(
|
|
19
|
+
action=ActionData(external_key=f"{COURSES_NAMESPACE}.enroll_learners"),
|
|
20
|
+
effect="allow",
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
COURSES_UNENROLL_LEARNERS = PermissionData(
|
|
24
|
+
action=ActionData(external_key=f"{COURSES_NAMESPACE}.unenroll_learners"),
|
|
25
|
+
effect="allow",
|
|
26
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
schema_version: "1.0"
|
|
2
|
+
priority: 100
|
|
3
|
+
|
|
4
|
+
# Icons are Paragon icon names (@openedx/paragon/icons).
|
|
5
|
+
|
|
6
|
+
permission_categories:
|
|
7
|
+
- id: course_enrollments
|
|
8
|
+
display_name: Enrollments
|
|
9
|
+
description: Permissions for viewing course enrollments and for enrolling or unenrolling learners.
|
|
10
|
+
icon: People
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
- namespace: courses
|
|
14
|
+
name: view_enrollments
|
|
15
|
+
display_name: View enrollments
|
|
16
|
+
description: View and search course enrollments and check a learner's enrollment status.
|
|
17
|
+
category_id: course_enrollments
|
|
18
|
+
scopes:
|
|
19
|
+
- course-v1
|
|
20
|
+
icon: RemoveRedEye
|
|
21
|
+
- namespace: courses
|
|
22
|
+
name: enroll_learners
|
|
23
|
+
display_name: Enroll learners
|
|
24
|
+
description: Enroll learners in the course, individually or in bulk.
|
|
25
|
+
category_id: course_enrollments
|
|
26
|
+
scopes:
|
|
27
|
+
- course-v1
|
|
28
|
+
icon: PersonAdd
|
|
29
|
+
- namespace: courses
|
|
30
|
+
name: unenroll_learners
|
|
31
|
+
display_name: Unenroll learners
|
|
32
|
+
description: Remove learners' enrollments from the course.
|
|
33
|
+
category_id: course_enrollments
|
|
34
|
+
scopes:
|
|
35
|
+
- course-v1
|
|
36
|
+
icon: PersonRemove
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
schema_version: "1.0"
|
|
2
|
+
priority: 100
|
|
3
|
+
|
|
4
|
+
role_extensions:
|
|
5
|
+
- role_id: course_admin
|
|
6
|
+
add_permissions:
|
|
7
|
+
- courses.view_enrollments
|
|
8
|
+
- courses.enroll_learners
|
|
9
|
+
- courses.unenroll_learners
|
|
10
|
+
|
|
11
|
+
- role_id: course_staff
|
|
12
|
+
add_permissions:
|
|
13
|
+
- courses.view_enrollments
|
|
14
|
+
- courses.enroll_learners
|
|
15
|
+
- courses.unenroll_learners
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Learner Administration
|
|
2
|
+
######################
|
|
3
|
+
|
|
4
|
+
This applet owns the permissions for viewing course information and managing learner extensions and cohorts, which belong to the Support Learning bounded context. It adds those permissions to the ``course_admin`` and ``course_staff`` roles through role extensions. ``constants.py`` contains its permission objects.
|
|
5
|
+
|
|
6
|
+
The applet is an internal package, so clients import these constants from ``openedx_authz.authz``. The existing ``openedx_authz.constants.permissions`` path remains a compatibility export.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Learner Administration authorization definitions."""
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Learner Administration permission constants."""
|
|
2
|
+
|
|
3
|
+
from openedx_authz.data import ActionData, PermissionData
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"COURSES_VIEW_COURSE_INFO",
|
|
7
|
+
"COURSES_VIEW_LEARNER_EXTENSIONS",
|
|
8
|
+
"COURSES_MANAGE_LEARNER_EXTENSIONS",
|
|
9
|
+
"COURSES_VIEW_COHORTS",
|
|
10
|
+
"COURSES_MANAGE_COHORTS",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
COURSES_NAMESPACE = "courses"
|
|
14
|
+
|
|
15
|
+
COURSES_VIEW_COURSE_INFO = PermissionData(
|
|
16
|
+
action=ActionData(external_key=f"{COURSES_NAMESPACE}.view_course_info"),
|
|
17
|
+
effect="allow",
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
COURSES_VIEW_LEARNER_EXTENSIONS = PermissionData(
|
|
21
|
+
action=ActionData(external_key=f"{COURSES_NAMESPACE}.view_learner_extensions"),
|
|
22
|
+
effect="allow",
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
COURSES_MANAGE_LEARNER_EXTENSIONS = PermissionData(
|
|
26
|
+
action=ActionData(external_key=f"{COURSES_NAMESPACE}.manage_learner_extensions"),
|
|
27
|
+
effect="allow",
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
COURSES_VIEW_COHORTS = PermissionData(
|
|
31
|
+
action=ActionData(external_key=f"{COURSES_NAMESPACE}.view_cohorts"),
|
|
32
|
+
effect="allow",
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
COURSES_MANAGE_COHORTS = PermissionData(
|
|
36
|
+
action=ActionData(external_key=f"{COURSES_NAMESPACE}.manage_cohorts"),
|
|
37
|
+
effect="allow",
|
|
38
|
+
)
|