openedx-authz 4.1.0__tar.gz → 4.3.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-4.1.0 → openedx_authz-4.3.0}/CHANGELOG.rst +19 -0
- {openedx_authz-4.1.0/src/openedx_authz.egg-info → openedx_authz-4.3.0}/PKG-INFO +1 -1
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/references/compiled-schema.yaml +39 -51
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/pyproject.toml +1 -1
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/api/catalog.py +10 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/api/users.py +49 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_authoring/schema/permissions.yaml +29 -32
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/enrollments/schema/permissions.yaml +1 -1
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_administration/schema/permissions.yaml +8 -12
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_grading/schema/permissions.yaml +1 -1
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/data.py +9 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/utils.py +78 -0
- openedx_authz-4.3.0/src/openedx_authz/rest_api/v1/admin_console/filters.py +99 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/serializers.py +24 -2
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/views.py +36 -3
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/api/test_catalog.py +1 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/api/test_users.py +114 -1
- openedx_authz-4.3.0/src/openedx_authz/tests/rest_api/admin_console/test_filters.py +71 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/admin_console/test_views.py +45 -0
- openedx_authz-4.3.0/src/openedx_authz/tests/rest_api/test_utils.py +171 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/test_views.py +287 -2
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_migrations.py +1 -1
- {openedx_authz-4.1.0 → openedx_authz-4.3.0/src/openedx_authz.egg-info}/PKG-INFO +1 -1
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz.egg-info/SOURCES.txt +1 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz.egg-info/scm_file_list.json +1 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/uv.lock +423 -381
- openedx_authz-4.1.0/src/openedx_authz/rest_api/v1/admin_console/filters.py +0 -56
- openedx_authz-4.1.0/src/openedx_authz/tests/rest_api/test_utils.py +0 -26
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.annotation_safe_list.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.editorconfig +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/dependabot.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/workflows/add-depr-ticket-to-depr-board.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/workflows/add-remove-label-on-comment.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/workflows/ci.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/workflows/commitlint.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/workflows/release.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/workflows/self-assign-issue.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.github/workflows/upgrade-python-requirements.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.gitignore +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.pii_annotations.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/.readthedocs.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/LICENSE +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/MANIFEST.in +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/Makefile +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/catalog-info.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/codecov.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/Makefile +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/_images/architecture-overview.png +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/_static/theme_overrides.css +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/changelog.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/concepts/core_roles_and_permissions/content_library_roles.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/concepts/core_roles_and_permissions/course_roles.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/concepts/core_roles_and_permissions/index.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/concepts/index.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/conf.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0001-purpose-of-this-repo.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0002-authorization-model-foundation.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0003-jwt-usage.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0004-technology-selection.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0005-architecture-and-data-modeling.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0007-enforcement-mechanisms-mfe.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0008-compatibility-scheme.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0009-authz-for-course-authoring.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0010-course-authoring-flag.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0011-course-authoring-migration-process.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0012-auditability.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0012-glob-support-for-role-assignments.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0013-course-authoring-automatic-migration.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0014-bulk-assignment-queries-without-casbin-enforce.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0015-expose-course-authoring-waffle-flag-state-via-rest-api.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0016-static-and-dynamic-roles.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0017-static-authorization-schema.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0018-authorization-schema-lifecycle.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0019-authorization-schema-discovery.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0020-authorization-schema-internationalization.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0021-authorization-definition-api.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0022-defer-authorization-implications.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0023-extend-static-roles.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0024-api-contract-for-user-grouped-role-assignments.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0025-authorization-schema-source-tracking.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0026-rest-api-domain-ownership-boundary.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0027-cross-domain-filtering-via-openedx-filters.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0028-api-contract-for-role-catalog.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0029-paragon-icon-list-maintenance.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0030-tutor-implementation-authz-schema-discovery.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0031-priority-applies-to-role-extensions-only.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0032-applets-for-built-in-authorization-capabilities.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0033-shared-applet-for-course-team-roles.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0034-permission-dependencies-in-authorization-schema.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0035-custom-role-persistence.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0036-api-contract-for-custom-roles.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0037-custom-role-audit-trail.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/0038-hidden-permission-categories-and-permissions.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/decisions.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/getting_started.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/how-tos/index.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/how-tos/use-built-in-constants.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/index.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/internationalization.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/make.bat +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/quickstarts/index.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/readme.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/references/authorization-schema-json.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/references/authorization-schema.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/references/built-in-constants.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/references/compiled-schema.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/references/index.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/docs/testing.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/manage.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/pylintrc +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/pylintrc_tweaks +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/ruff.toml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/scripts/generate_compiled_schema.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/scripts/generate_paragon_icons.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/setup.cfg +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/admin.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/api/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/api/data.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/api/permissions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/api/roles.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/api/utils.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/content_libraries/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/content_libraries/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/content_libraries/constants.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/content_libraries/schema/permissions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/content_libraries/schema/roles.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_authoring/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_authoring/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_authoring/constants.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_authoring/schema/role_extensions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_team_roles/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_team_roles/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_team_roles/constants.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_team_roles/schema/legacy_permissions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/course_team_roles/schema/roles.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/enrollments/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/enrollments/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/enrollments/constants.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/enrollments/schema/role_extensions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_administration/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_administration/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_administration/constants.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_administration/schema/role_extensions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_grading/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_grading/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_grading/constants.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/applets/learner_grading/schema/role_extensions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/apps.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/authz/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/conf/locale/config.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/constants/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/constants/permissions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/constants/roles.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/constants/schema.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/data.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/adapter.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/apps.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/config/model.conf +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/enforcer.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/filter.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/matcher.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/policy.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/renderer.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/authz-schema-v1.json +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/compilation.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/discovery.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/exceptions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/issues.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/loading.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/paragon_icons.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/parsing.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/pipeline.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/snapshot.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/syntax.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/translation.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/types/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/types/compilation.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/types/definitions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/types/loading.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/schema/validation.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/engine/utils.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/filters.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/handlers.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/management/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/management/commands/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/management/commands/authz_migrate_course_authoring.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/management/commands/authz_rollback_course_authoring.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/management/commands/enforcement.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/management/commands/extract_schema_translations.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/management/commands/load_authz_schema.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/management/commands/load_policies.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0001_add_casbin_dependency.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0002_initial.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0003_usersubject.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0004_contentlibraryscope.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0005_policycachecontrol.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0006_migrate_legacy_permissions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0007_coursescope.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0008_authzcourseauthoringmigrationrun.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0009_roleassignmentaudit.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0010_scope_external_key.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0011_authz_schema_definitions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0012_move_builtin_schema_sources_to_applets.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/0013_add_hidden_to_categories_and_permissions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/migrations/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/models/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/models/authz_migration.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/models/base.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/models/core.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/models/engine.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/models/schema.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/models/scopes.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/models/subjects.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/decorators.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/urls.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/admin_console/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/admin_console/serializers.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/admin_console/views.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/course_authoring/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/course_authoring/pipeline.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/course_authoring/views.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/fields.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/paginators.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/permissions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/rest_api/v1/urls.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/settings/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/settings/common.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/settings/production.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/settings/test.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/templates/openedx_authz/base.html +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/api/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/api/test_data.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/api/test_roles.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/applets/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/applets/test_builtin_definitions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/applets/test_instructor_dashboard_permissions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/authz/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/authz/test_resources.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/conftest.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_compiled/categories.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_compiled/extensions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_compiled/permissions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_compiled/roles.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_parse/malformed.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_semantics/unknown_category.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_structure/items.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/invalid_structure/priority.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/valid/categories.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/valid/extensions.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/valid/permissions.yml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/fixtures/schema_pipeline/valid/roles.yaml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/test_handlers.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/test_models.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/test_schema_apply.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/test_schema_pipeline.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/integration/test_views.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/admin_console/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/course_authoring/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/course_authoring/test_pipeline.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/course_authoring/test_views.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/mixins.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/rest_api/test_permissions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/role_permissions.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/factories.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_apply.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_compilation.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_discovery.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_json_schema.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_load_authz_schema_command.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_loading.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_parsing.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_pipeline.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_renderer.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_schema_models.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_snapshot.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_source_storage.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_syntax.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_translation.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_types.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/schema/test_validation.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/stubs/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/stubs/apps.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/stubs/migrations/0001_initial.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/stubs/migrations/0002_learningpackage_contentlibrary_learning_package.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/stubs/migrations/0002_userprofile.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/stubs/models.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_commands.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_enforcement.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_enforcer.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_engine_utils.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_filter.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_handlers.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_imports.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_models.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_policy.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/tests/test_utils.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/urls.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz/utils.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz.egg-info/dependency_links.txt +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz.egg-info/entry_points.txt +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz.egg-info/requires.txt +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/src/openedx_authz.egg-info/top_level.txt +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tox.ini +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/.gitignore +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/LICENSE.txt +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/MANIFEST.in +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/Makefile +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/README.rst +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/pyproject.toml +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/tutor_authz/__about__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/tutor_authz/__init__.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/tutor_authz/patches/openedx-common-settings +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/tutor_authz/plugin.py +0 -0
- {openedx_authz-4.1.0 → openedx_authz-4.3.0}/tutor/tutor-contrib-authz/tutor_authz/templates/apps/openedx/config/authz-schema.yml +0 -0
|
@@ -56,15 +56,34 @@ Added
|
|
|
56
56
|
``openedx_authz/engine/schema/paragon_icons.py`` and regenerated with
|
|
57
57
|
``make paragon_icons`` (ADR 0029).
|
|
58
58
|
* 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.
|
|
59
|
+
* Added list controls to the role catalog, ``GET /api/authz/v1/roles/``, for the Admin Console
|
|
60
|
+
Roles and Permissions table (ADR 0036):
|
|
61
|
+
|
|
62
|
+
* ``search`` matches role display names, ignoring case.
|
|
63
|
+
* ``definition_kind`` (``static`` or ``user_defined``) keeps only roles of that kind.
|
|
64
|
+
* ``sort_by`` (``display_name``, ``scope_type``, ``user_count`` or ``updated_at``) and ``order``
|
|
65
|
+
(``asc`` or ``desc``) sort the roles. Roles without ``updated_at`` go last, and ties are
|
|
66
|
+
broken by role identifier.
|
|
67
|
+
* Unknown values of ``definition_kind``, ``sort_by`` or ``order`` return 400.
|
|
68
|
+
* ``count`` and the pages reflect the filtered and sorted roles. The ``categories`` and
|
|
69
|
+
``permissions`` catalogs are not filtered.
|
|
70
|
+
|
|
71
|
+
* Added ``user_count`` and ``updated_at`` to each role of the role catalog. ``user_count`` is the
|
|
72
|
+
number of distinct active users with the role in the scopes of the requested types that the
|
|
73
|
+
caller can view. ``updated_at`` is ``null`` for static roles.
|
|
74
|
+
* Added ``get_visible_role_user_counts`` to the public API to count those users.
|
|
59
75
|
|
|
60
76
|
Changed
|
|
61
77
|
========
|
|
62
78
|
|
|
79
|
+
* Updated the course permission categories and permissions to match the Roles and Permissions console proposal. ``View course info`` and ``View checklists`` move to ``Course access & content``, ``Export tags`` moves to ``Tags``, and the group configuration permissions move to ``Cohorts & content groups``. The ``course_information`` and ``course_other`` categories are removed. ``Course team & groups``, ``Grading``, ``Advanced & certificates``, and ``Import / export`` are renamed, the category IDs ``course_cohorts``, ``course_team_group``, ``course_grading``, and ``course_advanced_certificates`` become ``course_cohorts_content_groups``, ``course_team``, ``course_grading_settings``, and ``course_advanced_settings_certificates``, and several category and permission descriptions now name Studio and the Instructor Dashboard. ``courses.manage_taxonomies`` is now hidden. Role grants are unchanged.
|
|
63
80
|
* Static roles may declare an empty permission list when ``role_extensions`` contribute their permissions. Permission lists used by extension edits remain non-empty.
|
|
64
81
|
* Built-in Content Library and course authorization definitions now live in capability applets. The compiled authorization schema, the permission constants, and the role keys remain unchanged.
|
|
65
82
|
* **Breaking**: ``GET /api/authz/v1/scopes/`` no longer accepts ``course`` and ``library`` as
|
|
66
83
|
``scope_type`` values. Use ``course-v1`` and ``lib`` instead. Requests with the old values now
|
|
67
84
|
return a 400 validation error, the same as ``/roles/``.
|
|
85
|
+
* The role catalog now lists roles by display name by default, instead of by role identifier.
|
|
86
|
+
Pass ``sort_by`` and ``order`` to choose another order.
|
|
68
87
|
|
|
69
88
|
Removed
|
|
70
89
|
=======
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openedx-authz
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.3.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
|
|
@@ -443,7 +443,7 @@ permissions:
|
|
|
443
443
|
name: edit_grading_settings
|
|
444
444
|
display_name: Edit grading settings
|
|
445
445
|
description: Update the grading configuration for the course, including assignment types and grading scale.
|
|
446
|
-
category_id:
|
|
446
|
+
category_id: course_grading_settings
|
|
447
447
|
scopes:
|
|
448
448
|
- course-v1
|
|
449
449
|
icon: EditOutline
|
|
@@ -487,7 +487,7 @@ permissions:
|
|
|
487
487
|
name: export_tags
|
|
488
488
|
display_name: Export tags
|
|
489
489
|
description: Download the tag data associated with this course.
|
|
490
|
-
category_id:
|
|
490
|
+
category_id: course_tags_taxonomies
|
|
491
491
|
scopes:
|
|
492
492
|
- course-v1
|
|
493
493
|
icon: Upload
|
|
@@ -564,7 +564,7 @@ permissions:
|
|
|
564
564
|
name: manage_advanced_settings
|
|
565
565
|
display_name: Manage advanced settings
|
|
566
566
|
description: Edit technical course configurations in the Advanced Settings page in Studio.
|
|
567
|
-
category_id:
|
|
567
|
+
category_id: course_advanced_settings_certificates
|
|
568
568
|
scopes:
|
|
569
569
|
- course-v1
|
|
570
570
|
icon: Settings
|
|
@@ -575,7 +575,7 @@ permissions:
|
|
|
575
575
|
name: manage_certificates
|
|
576
576
|
display_name: Manage certificates
|
|
577
577
|
description: Create and edit course certificates, including certificate design and eligibility settings.
|
|
578
|
-
category_id:
|
|
578
|
+
category_id: course_advanced_settings_certificates
|
|
579
579
|
scopes:
|
|
580
580
|
- course-v1
|
|
581
581
|
icon: Settings
|
|
@@ -586,7 +586,7 @@ permissions:
|
|
|
586
586
|
name: manage_cohorts
|
|
587
587
|
display_name: Manage cohorts
|
|
588
588
|
description: Enable cohorts, create and configure cohorts, and assign or move learners between cohorts manually or through CSV uploads.
|
|
589
|
-
category_id:
|
|
589
|
+
category_id: course_cohorts_content_groups
|
|
590
590
|
scopes:
|
|
591
591
|
- course-v1
|
|
592
592
|
icon: Settings
|
|
@@ -596,8 +596,8 @@ permissions:
|
|
|
596
596
|
namespace: courses
|
|
597
597
|
name: manage_course_team
|
|
598
598
|
display_name: Manage course team
|
|
599
|
-
description: Add, change, or remove role assignments for this course from the Roles and Permissions console.
|
|
600
|
-
category_id:
|
|
599
|
+
description: Add, change, or remove role assignments for this course from the Roles and Permissions console or the Instructor Dashboard.
|
|
600
|
+
category_id: course_team
|
|
601
601
|
scopes:
|
|
602
602
|
- course-v1
|
|
603
603
|
icon: Settings
|
|
@@ -619,7 +619,7 @@ permissions:
|
|
|
619
619
|
name: manage_group_configurations
|
|
620
620
|
display_name: Manage group configurations
|
|
621
621
|
description: Create and manage content groups used to target course content to specific learners.
|
|
622
|
-
category_id:
|
|
622
|
+
category_id: course_cohorts_content_groups
|
|
623
623
|
scopes:
|
|
624
624
|
- course-v1
|
|
625
625
|
icon: Settings
|
|
@@ -689,7 +689,7 @@ permissions:
|
|
|
689
689
|
scopes:
|
|
690
690
|
- course-v1
|
|
691
691
|
icon: LocalOffer
|
|
692
|
-
hidden:
|
|
692
|
+
hidden: true
|
|
693
693
|
courses.publish_course_content:
|
|
694
694
|
applet: course_authoring
|
|
695
695
|
namespace: courses
|
|
@@ -718,7 +718,7 @@ permissions:
|
|
|
718
718
|
name: view_advanced_settings
|
|
719
719
|
display_name: View advanced settings
|
|
720
720
|
description: Access the Advanced Settings page in Studio. This covers a wide range of technical course configurations, including proctoring, timed exams, LTI tools, enrollment limits, and custom display options.
|
|
721
|
-
category_id:
|
|
721
|
+
category_id: course_advanced_settings_certificates
|
|
722
722
|
scopes:
|
|
723
723
|
- course-v1
|
|
724
724
|
icon: RemoveRedEye
|
|
@@ -729,7 +729,7 @@ permissions:
|
|
|
729
729
|
name: view_certificates
|
|
730
730
|
display_name: View certificates
|
|
731
731
|
description: See the course certificate settings.
|
|
732
|
-
category_id:
|
|
732
|
+
category_id: course_advanced_settings_certificates
|
|
733
733
|
scopes:
|
|
734
734
|
- course-v1
|
|
735
735
|
icon: RemoveRedEye
|
|
@@ -740,7 +740,7 @@ permissions:
|
|
|
740
740
|
name: view_checklists
|
|
741
741
|
display_name: View checklists
|
|
742
742
|
description: See the course launch checklist in Studio.
|
|
743
|
-
category_id:
|
|
743
|
+
category_id: course_access_content
|
|
744
744
|
scopes:
|
|
745
745
|
- course-v1
|
|
746
746
|
icon: RemoveRedEye
|
|
@@ -751,7 +751,7 @@ permissions:
|
|
|
751
751
|
name: view_cohorts
|
|
752
752
|
display_name: View cohorts
|
|
753
753
|
description: View course cohorts, their configuration, and their members.
|
|
754
|
-
category_id:
|
|
754
|
+
category_id: course_cohorts_content_groups
|
|
755
755
|
scopes:
|
|
756
756
|
- course-v1
|
|
757
757
|
icon: RemoveRedEye
|
|
@@ -772,8 +772,8 @@ permissions:
|
|
|
772
772
|
namespace: courses
|
|
773
773
|
name: view_course_info
|
|
774
774
|
display_name: View course info
|
|
775
|
-
description: View general course information and enrollment counts.
|
|
776
|
-
category_id:
|
|
775
|
+
description: View general course information and enrollment counts in the Instructor Dashboard.
|
|
776
|
+
category_id: course_access_content
|
|
777
777
|
scopes:
|
|
778
778
|
- course-v1
|
|
779
779
|
icon: RemoveRedEye
|
|
@@ -783,8 +783,8 @@ permissions:
|
|
|
783
783
|
namespace: courses
|
|
784
784
|
name: view_course_team
|
|
785
785
|
display_name: View course team
|
|
786
|
-
description: See
|
|
787
|
-
category_id:
|
|
786
|
+
description: See who has a role assigned to this course in the Roles and Permissions console or on the Course Team tab in the Instructor Dashboard.
|
|
787
|
+
category_id: course_team
|
|
788
788
|
scopes:
|
|
789
789
|
- course-v1
|
|
790
790
|
icon: RemoveRedEye
|
|
@@ -838,8 +838,8 @@ permissions:
|
|
|
838
838
|
namespace: courses
|
|
839
839
|
name: view_grading_settings
|
|
840
840
|
display_name: View grading settings
|
|
841
|
-
description:
|
|
842
|
-
category_id:
|
|
841
|
+
description: View the course's grading configuration, including assignment types and the grading scale, in Studio or from the Instructor Dashboard.
|
|
842
|
+
category_id: course_grading_settings
|
|
843
843
|
scopes:
|
|
844
844
|
- course-v1
|
|
845
845
|
icon: RemoveRedEye
|
|
@@ -850,7 +850,7 @@ permissions:
|
|
|
850
850
|
name: view_group_configurations
|
|
851
851
|
display_name: View group configurations
|
|
852
852
|
description: See the list of content groups and their configurations for this course.
|
|
853
|
-
category_id:
|
|
853
|
+
category_id: course_cohorts_content_groups
|
|
854
854
|
scopes:
|
|
855
855
|
- course-v1
|
|
856
856
|
icon: RemoveRedEye
|
|
@@ -903,25 +903,25 @@ categories:
|
|
|
903
903
|
course_access_content:
|
|
904
904
|
applet: course_authoring
|
|
905
905
|
display_name: Course access & content
|
|
906
|
-
description: Permissions
|
|
906
|
+
description: Permissions for accessing the course and its launch checklist in Studio, managing course content, and viewing the course overview in the Instructor Dashboard.
|
|
907
907
|
icon: BookOpen
|
|
908
908
|
hidden: false
|
|
909
|
-
|
|
909
|
+
course_advanced_settings_certificates:
|
|
910
910
|
applet: course_authoring
|
|
911
|
-
display_name: Advanced & certificates
|
|
912
|
-
description: Permissions for managing advanced course settings and course certificates.
|
|
911
|
+
display_name: Advanced settings & certificates
|
|
912
|
+
description: Permissions for viewing and managing advanced course settings and course certificates in Studio.
|
|
913
913
|
icon: CheckCircle
|
|
914
914
|
hidden: false
|
|
915
|
-
|
|
915
|
+
course_cohorts_content_groups:
|
|
916
916
|
applet: learner_administration
|
|
917
|
-
display_name: Cohorts
|
|
918
|
-
description: Permissions for viewing and managing
|
|
917
|
+
display_name: Cohorts & content groups
|
|
918
|
+
description: Permissions for viewing and managing cohorts in the Instructor Dashboard and configuring content groups in Studio.
|
|
919
919
|
icon: Groups
|
|
920
920
|
hidden: false
|
|
921
921
|
course_enrollments:
|
|
922
922
|
applet: enrollments
|
|
923
923
|
display_name: Enrollments
|
|
924
|
-
description: Permissions for viewing
|
|
924
|
+
description: Permissions for viewing and managing learner enrollments in the Instructor Dashboard.
|
|
925
925
|
icon: People
|
|
926
926
|
hidden: false
|
|
927
927
|
course_files:
|
|
@@ -930,34 +930,28 @@ categories:
|
|
|
930
930
|
description: Permissions for viewing and managing files and assets uploaded to the course.
|
|
931
931
|
icon: Folder
|
|
932
932
|
hidden: false
|
|
933
|
-
|
|
933
|
+
course_grading_settings:
|
|
934
934
|
applet: course_authoring
|
|
935
|
-
display_name: Grading
|
|
936
|
-
description: Permissions
|
|
935
|
+
display_name: Grading settings
|
|
936
|
+
description: Permissions for viewing and editing course grading settings.
|
|
937
937
|
icon: Award
|
|
938
938
|
hidden: false
|
|
939
939
|
course_import_export:
|
|
940
940
|
applet: course_authoring
|
|
941
|
-
display_name:
|
|
942
|
-
description: Permissions for importing and exporting course content
|
|
941
|
+
display_name: Course import & export
|
|
942
|
+
description: Permissions for importing and exporting course content.
|
|
943
943
|
icon: Download
|
|
944
944
|
hidden: false
|
|
945
|
-
course_information:
|
|
946
|
-
applet: learner_administration
|
|
947
|
-
display_name: Course information
|
|
948
|
-
description: Permissions for viewing general course information.
|
|
949
|
-
icon: Info
|
|
950
|
-
hidden: false
|
|
951
945
|
course_learner_extensions:
|
|
952
946
|
applet: learner_administration
|
|
953
947
|
display_name: Learner extensions
|
|
954
|
-
description: Permissions for viewing and managing due date extensions
|
|
948
|
+
description: Permissions for viewing and managing individual due date extensions from the Date Extensions tab in the Instructor Dashboard.
|
|
955
949
|
icon: Event
|
|
956
950
|
hidden: false
|
|
957
951
|
course_learner_grading:
|
|
958
952
|
applet: learner_grading
|
|
959
953
|
display_name: Learner grading
|
|
960
|
-
description: Permissions for viewing learner grades and using grading tools
|
|
954
|
+
description: Permissions for viewing learner grades and using grading tools in the Instructor Dashboard.
|
|
961
955
|
icon: Grading
|
|
962
956
|
hidden: false
|
|
963
957
|
course_legacy:
|
|
@@ -972,12 +966,6 @@ categories:
|
|
|
972
966
|
description: Permissions for reviewing and managing updates made to content libraries connected to the course.
|
|
973
967
|
icon: LibraryBooks
|
|
974
968
|
hidden: false
|
|
975
|
-
course_other:
|
|
976
|
-
applet: course_authoring
|
|
977
|
-
display_name: Other
|
|
978
|
-
description: Additional permissions not included in other categories, such as viewing checklists.
|
|
979
|
-
icon: DrawShapes
|
|
980
|
-
hidden: false
|
|
981
969
|
course_pages_resources:
|
|
982
970
|
applet: course_authoring
|
|
983
971
|
display_name: Pages & resources
|
|
@@ -993,13 +981,13 @@ categories:
|
|
|
993
981
|
course_tags_taxonomies:
|
|
994
982
|
applet: course_authoring
|
|
995
983
|
display_name: Tags
|
|
996
|
-
description: Permissions for managing tags
|
|
984
|
+
description: Permissions for managing course tags and exporting tag data.
|
|
997
985
|
icon: LocalOffer
|
|
998
986
|
hidden: false
|
|
999
|
-
|
|
987
|
+
course_team:
|
|
1000
988
|
applet: course_authoring
|
|
1001
|
-
display_name: Course team
|
|
1002
|
-
description: Permissions for viewing
|
|
989
|
+
display_name: Course team
|
|
990
|
+
description: Permissions for viewing course team members and managing course role assignments.
|
|
1003
991
|
icon: Group
|
|
1004
992
|
hidden: false
|
|
1005
993
|
course_updates_handouts:
|
|
@@ -78,17 +78,27 @@ def get_role_catalog(scope_types: list[str]) -> list[dict]:
|
|
|
78
78
|
without hidden ones.
|
|
79
79
|
- ``scope_types``: Sorted scope types, among the requested ones, in the role's ``scopes``. Grants
|
|
80
80
|
are rendered from them, so this does not depend on which permissions are hidden.
|
|
81
|
+
- ``updated_at``: When a custom role last changed. Always ``None`` here, because static roles
|
|
82
|
+
have no meaningful edit date.
|
|
81
83
|
"""
|
|
82
84
|
roles = AuthzRoleDefinition.objects.visible().with_grants_in_scope_types(scope_types)
|
|
83
85
|
return [
|
|
84
86
|
{
|
|
85
87
|
"role": role.role_id,
|
|
88
|
+
# TODO: translate ``display_name`` (and ``description``) here when runtime schema
|
|
89
|
+
# translation lands (ADR 0020). RoleListView searches and sorts these dicts before
|
|
90
|
+
# serializing, so translating in the serializer instead would make search and sort
|
|
91
|
+
# match the English names while the user sees the translated ones. In the same change,
|
|
92
|
+
# switch ``filter_roles`` and ``_role_sort_value`` in ``rest_api/utils.py`` from
|
|
93
|
+
# ``lower()`` to ``casefold()``, so translated names compare without case (e.g. "ß" vs "SS").
|
|
86
94
|
"display_name": role.display_name,
|
|
87
95
|
"description": role.description,
|
|
88
96
|
"icon": role.icon,
|
|
89
97
|
"definition_kind": DefinitionKind.STATIC.value,
|
|
90
98
|
"permissions": sorted({grant.permission.identifier for grant in role.grants}),
|
|
91
99
|
"scope_types": sorted(set(role.scopes) & set(scope_types)),
|
|
100
|
+
# TODO: set correct value for ``updated_at`` when custom roles arrive.
|
|
101
|
+
"updated_at": None,
|
|
92
102
|
}
|
|
93
103
|
for role in roles.order_by("role_id")
|
|
94
104
|
]
|
|
@@ -10,6 +10,7 @@ with the role management system, which uses namespaced subjects
|
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
import logging
|
|
13
|
+
from collections import defaultdict
|
|
13
14
|
|
|
14
15
|
from django.contrib.auth import get_user_model
|
|
15
16
|
from django.db.models import Q
|
|
@@ -60,6 +61,7 @@ __all__ = [
|
|
|
60
61
|
"get_user_role_assignments_filtered",
|
|
61
62
|
"get_all_user_role_assignments_in_scope",
|
|
62
63
|
"get_visible_role_assignments_for_user",
|
|
64
|
+
"get_visible_role_user_counts",
|
|
63
65
|
"get_visible_user_role_assignments_filtered_by_current_user",
|
|
64
66
|
"is_user_allowed",
|
|
65
67
|
"is_user_allowed_in_any_scope",
|
|
@@ -398,6 +400,53 @@ def get_visible_role_assignments_for_user(
|
|
|
398
400
|
return get_user_assignment_map(user_role_assignments)
|
|
399
401
|
|
|
400
402
|
|
|
403
|
+
def get_visible_role_user_counts(
|
|
404
|
+
scope_types: list[str],
|
|
405
|
+
allowed_for_user_external_key: str | None = None,
|
|
406
|
+
) -> dict[str, int]:
|
|
407
|
+
"""Count the distinct active users that hold each role in the given scope types.
|
|
408
|
+
|
|
409
|
+
Backs the ``user_count`` of the role catalog. It counts users, not assignments: a
|
|
410
|
+
user with a role in three courses adds 1 to that role. Only the assignments the viewer can see
|
|
411
|
+
count, using the same scope-based visibility as the team members endpoints, and only
|
|
412
|
+
active users count, so deactivated accounts don't inflate the Members column.
|
|
413
|
+
|
|
414
|
+
Assignments are Casbin grouping policies whose scope column holds full keys or globs, so they
|
|
415
|
+
can't be grouped by scope type in SQL. They are loaded once and counted in Python, with one
|
|
416
|
+
query for the active users.
|
|
417
|
+
|
|
418
|
+
Args:
|
|
419
|
+
scope_types: The scope types to count in (e.g., ``['course-v1', 'lib']``). Org and platform
|
|
420
|
+
globs of a scope type (e.g., ``lib:Org1:*``) count as that scope type.
|
|
421
|
+
allowed_for_user_external_key: The username of the viewer. If None, every assignment counts.
|
|
422
|
+
|
|
423
|
+
Returns:
|
|
424
|
+
dict[str, int]: The user count by role external key. Roles without active, visible users
|
|
425
|
+
are left out.
|
|
426
|
+
"""
|
|
427
|
+
assignments = [
|
|
428
|
+
assignment
|
|
429
|
+
for assignment in get_role_assignments()
|
|
430
|
+
if isinstance(assignment.subject, UserData) and assignment.scope.NAMESPACE in scope_types
|
|
431
|
+
]
|
|
432
|
+
assignments = _filter_allowed_assignments(assignments, user_external_key=allowed_for_user_external_key)
|
|
433
|
+
|
|
434
|
+
active_usernames = set(
|
|
435
|
+
User.objects.filter(
|
|
436
|
+
username__in={assignment.subject.username for assignment in assignments},
|
|
437
|
+
is_active=True,
|
|
438
|
+
).values_list("username", flat=True)
|
|
439
|
+
)
|
|
440
|
+
|
|
441
|
+
usernames_by_role: dict[str, set[str]] = defaultdict(set)
|
|
442
|
+
for assignment in assignments:
|
|
443
|
+
if assignment.subject.username not in active_usernames:
|
|
444
|
+
continue
|
|
445
|
+
for role in assignment.roles:
|
|
446
|
+
usernames_by_role[role.external_key].add(assignment.subject.username)
|
|
447
|
+
return {role: len(usernames) for role, usernames in usernames_by_role.items()}
|
|
448
|
+
|
|
449
|
+
|
|
401
450
|
def is_user_allowed(
|
|
402
451
|
user_external_key: str,
|
|
403
452
|
action_external_key: str,
|
|
@@ -9,7 +9,7 @@ priority: 100
|
|
|
9
9
|
permission_categories:
|
|
10
10
|
- id: course_access_content
|
|
11
11
|
display_name: Course access & content
|
|
12
|
-
description: Permissions
|
|
12
|
+
description: Permissions for accessing the course and its launch checklist in Studio, managing course content, and viewing the course overview in the Instructor Dashboard.
|
|
13
13
|
icon: BookOpen
|
|
14
14
|
- id: course_library_updates
|
|
15
15
|
display_name: Library updates
|
|
@@ -31,30 +31,26 @@ permission_categories:
|
|
|
31
31
|
display_name: Schedule & details
|
|
32
32
|
description: Permissions for viewing and editing the course schedule and course information.
|
|
33
33
|
icon: Calendar
|
|
34
|
-
- id:
|
|
35
|
-
display_name: Grading
|
|
36
|
-
description: Permissions
|
|
34
|
+
- id: course_grading_settings
|
|
35
|
+
display_name: Grading settings
|
|
36
|
+
description: Permissions for viewing and editing course grading settings.
|
|
37
37
|
icon: Award
|
|
38
|
-
- id:
|
|
39
|
-
display_name: Course team
|
|
40
|
-
description: Permissions for viewing
|
|
38
|
+
- id: course_team
|
|
39
|
+
display_name: Course team
|
|
40
|
+
description: Permissions for viewing course team members and managing course role assignments.
|
|
41
41
|
icon: Group
|
|
42
42
|
- id: course_tags_taxonomies
|
|
43
43
|
display_name: Tags
|
|
44
|
-
description: Permissions for managing tags
|
|
44
|
+
description: Permissions for managing course tags and exporting tag data.
|
|
45
45
|
icon: LocalOffer
|
|
46
|
-
- id:
|
|
47
|
-
display_name: Advanced & certificates
|
|
48
|
-
description: Permissions for managing advanced course settings and course certificates.
|
|
46
|
+
- id: course_advanced_settings_certificates
|
|
47
|
+
display_name: Advanced settings & certificates
|
|
48
|
+
description: Permissions for viewing and managing advanced course settings and course certificates in Studio.
|
|
49
49
|
icon: CheckCircle
|
|
50
50
|
- id: course_import_export
|
|
51
|
-
display_name:
|
|
52
|
-
description: Permissions for importing and exporting course content
|
|
51
|
+
display_name: Course import & export
|
|
52
|
+
description: Permissions for importing and exporting course content.
|
|
53
53
|
icon: Download
|
|
54
|
-
- id: course_other
|
|
55
|
-
display_name: Other
|
|
56
|
-
description: Additional permissions not included in other categories, such as viewing checklists.
|
|
57
|
-
icon: DrawShapes
|
|
58
54
|
|
|
59
55
|
permissions:
|
|
60
56
|
- namespace: courses
|
|
@@ -188,8 +184,8 @@ permissions:
|
|
|
188
184
|
- namespace: courses
|
|
189
185
|
name: view_grading_settings
|
|
190
186
|
display_name: View grading settings
|
|
191
|
-
description:
|
|
192
|
-
category_id:
|
|
187
|
+
description: View the course's grading configuration, including assignment types and the grading scale, in Studio or from the Instructor Dashboard.
|
|
188
|
+
category_id: course_grading_settings
|
|
193
189
|
scopes:
|
|
194
190
|
- course-v1
|
|
195
191
|
icon: RemoveRedEye
|
|
@@ -197,23 +193,23 @@ permissions:
|
|
|
197
193
|
name: edit_grading_settings
|
|
198
194
|
display_name: Edit grading settings
|
|
199
195
|
description: Update the grading configuration for the course, including assignment types and grading scale.
|
|
200
|
-
category_id:
|
|
196
|
+
category_id: course_grading_settings
|
|
201
197
|
scopes:
|
|
202
198
|
- course-v1
|
|
203
199
|
icon: EditOutline
|
|
204
200
|
- namespace: courses
|
|
205
201
|
name: view_course_team
|
|
206
202
|
display_name: View course team
|
|
207
|
-
description: See
|
|
208
|
-
category_id:
|
|
203
|
+
description: See who has a role assigned to this course in the Roles and Permissions console or on the Course Team tab in the Instructor Dashboard.
|
|
204
|
+
category_id: course_team
|
|
209
205
|
scopes:
|
|
210
206
|
- course-v1
|
|
211
207
|
icon: RemoveRedEye
|
|
212
208
|
- namespace: courses
|
|
213
209
|
name: manage_course_team
|
|
214
210
|
display_name: Manage course team
|
|
215
|
-
description: Add, change, or remove role assignments for this course from the Roles and Permissions console.
|
|
216
|
-
category_id:
|
|
211
|
+
description: Add, change, or remove role assignments for this course from the Roles and Permissions console or the Instructor Dashboard.
|
|
212
|
+
category_id: course_team
|
|
217
213
|
scopes:
|
|
218
214
|
- course-v1
|
|
219
215
|
icon: Settings
|
|
@@ -221,7 +217,7 @@ permissions:
|
|
|
221
217
|
name: view_group_configurations
|
|
222
218
|
display_name: View group configurations
|
|
223
219
|
description: See the list of content groups and their configurations for this course.
|
|
224
|
-
category_id:
|
|
220
|
+
category_id: course_cohorts_content_groups
|
|
225
221
|
scopes:
|
|
226
222
|
- course-v1
|
|
227
223
|
icon: RemoveRedEye
|
|
@@ -229,7 +225,7 @@ permissions:
|
|
|
229
225
|
name: manage_group_configurations
|
|
230
226
|
display_name: Manage group configurations
|
|
231
227
|
description: Create and manage content groups used to target course content to specific learners.
|
|
232
|
-
category_id:
|
|
228
|
+
category_id: course_cohorts_content_groups
|
|
233
229
|
scopes:
|
|
234
230
|
- course-v1
|
|
235
231
|
icon: Settings
|
|
@@ -245,7 +241,7 @@ permissions:
|
|
|
245
241
|
name: view_advanced_settings
|
|
246
242
|
display_name: View advanced settings
|
|
247
243
|
description: Access the Advanced Settings page in Studio. This covers a wide range of technical course configurations, including proctoring, timed exams, LTI tools, enrollment limits, and custom display options.
|
|
248
|
-
category_id:
|
|
244
|
+
category_id: course_advanced_settings_certificates
|
|
249
245
|
scopes:
|
|
250
246
|
- course-v1
|
|
251
247
|
icon: RemoveRedEye
|
|
@@ -253,7 +249,7 @@ permissions:
|
|
|
253
249
|
name: manage_advanced_settings
|
|
254
250
|
display_name: Manage advanced settings
|
|
255
251
|
description: Edit technical course configurations in the Advanced Settings page in Studio.
|
|
256
|
-
category_id:
|
|
252
|
+
category_id: course_advanced_settings_certificates
|
|
257
253
|
scopes:
|
|
258
254
|
- course-v1
|
|
259
255
|
icon: Settings
|
|
@@ -261,7 +257,7 @@ permissions:
|
|
|
261
257
|
name: view_certificates
|
|
262
258
|
display_name: View certificates
|
|
263
259
|
description: See the course certificate settings.
|
|
264
|
-
category_id:
|
|
260
|
+
category_id: course_advanced_settings_certificates
|
|
265
261
|
scopes:
|
|
266
262
|
- course-v1
|
|
267
263
|
icon: RemoveRedEye
|
|
@@ -269,7 +265,7 @@ permissions:
|
|
|
269
265
|
name: manage_certificates
|
|
270
266
|
display_name: Manage certificates
|
|
271
267
|
description: Create and edit course certificates, including certificate design and eligibility settings.
|
|
272
|
-
category_id:
|
|
268
|
+
category_id: course_advanced_settings_certificates
|
|
273
269
|
scopes:
|
|
274
270
|
- course-v1
|
|
275
271
|
icon: Settings
|
|
@@ -293,7 +289,7 @@ permissions:
|
|
|
293
289
|
name: export_tags
|
|
294
290
|
display_name: Export tags
|
|
295
291
|
description: Download the tag data associated with this course.
|
|
296
|
-
category_id:
|
|
292
|
+
category_id: course_tags_taxonomies
|
|
297
293
|
scopes:
|
|
298
294
|
- course-v1
|
|
299
295
|
icon: Upload
|
|
@@ -301,7 +297,7 @@ permissions:
|
|
|
301
297
|
name: view_checklists
|
|
302
298
|
display_name: View checklists
|
|
303
299
|
description: See the course launch checklist in Studio.
|
|
304
|
-
category_id:
|
|
300
|
+
category_id: course_access_content
|
|
305
301
|
scopes:
|
|
306
302
|
- course-v1
|
|
307
303
|
icon: RemoveRedEye
|
|
@@ -310,6 +306,7 @@ permissions:
|
|
|
310
306
|
display_name: Manage taxonomies
|
|
311
307
|
description: Manage taxonomies associated with this course. (Granted to course_admin; not currently surfaced in the admin console.)
|
|
312
308
|
category_id: course_tags_taxonomies
|
|
309
|
+
hidden: true
|
|
313
310
|
scopes:
|
|
314
311
|
- course-v1
|
|
315
312
|
icon: LocalOffer
|
|
@@ -6,7 +6,7 @@ priority: 100
|
|
|
6
6
|
permission_categories:
|
|
7
7
|
- id: course_enrollments
|
|
8
8
|
display_name: Enrollments
|
|
9
|
-
description: Permissions for viewing
|
|
9
|
+
description: Permissions for viewing and managing learner enrollments in the Instructor Dashboard.
|
|
10
10
|
icon: People
|
|
11
11
|
|
|
12
12
|
permissions:
|
|
@@ -4,25 +4,21 @@ priority: 100
|
|
|
4
4
|
# Icons are Paragon icon names (@openedx/paragon/icons).
|
|
5
5
|
|
|
6
6
|
permission_categories:
|
|
7
|
-
- id: course_information
|
|
8
|
-
display_name: Course information
|
|
9
|
-
description: Permissions for viewing general course information.
|
|
10
|
-
icon: Info
|
|
11
7
|
- id: course_learner_extensions
|
|
12
8
|
display_name: Learner extensions
|
|
13
|
-
description: Permissions for viewing and managing due date extensions
|
|
9
|
+
description: Permissions for viewing and managing individual due date extensions from the Date Extensions tab in the Instructor Dashboard.
|
|
14
10
|
icon: Event
|
|
15
|
-
- id:
|
|
16
|
-
display_name: Cohorts
|
|
17
|
-
description: Permissions for viewing and managing
|
|
11
|
+
- id: course_cohorts_content_groups
|
|
12
|
+
display_name: Cohorts & content groups
|
|
13
|
+
description: Permissions for viewing and managing cohorts in the Instructor Dashboard and configuring content groups in Studio.
|
|
18
14
|
icon: Groups
|
|
19
15
|
|
|
20
16
|
permissions:
|
|
21
17
|
- namespace: courses
|
|
22
18
|
name: view_course_info
|
|
23
19
|
display_name: View course info
|
|
24
|
-
description: View general course information and enrollment counts.
|
|
25
|
-
category_id:
|
|
20
|
+
description: View general course information and enrollment counts in the Instructor Dashboard.
|
|
21
|
+
category_id: course_access_content
|
|
26
22
|
scopes:
|
|
27
23
|
- course-v1
|
|
28
24
|
icon: RemoveRedEye
|
|
@@ -46,7 +42,7 @@ permissions:
|
|
|
46
42
|
name: view_cohorts
|
|
47
43
|
display_name: View cohorts
|
|
48
44
|
description: View course cohorts, their configuration, and their members.
|
|
49
|
-
category_id:
|
|
45
|
+
category_id: course_cohorts_content_groups
|
|
50
46
|
scopes:
|
|
51
47
|
- course-v1
|
|
52
48
|
icon: RemoveRedEye
|
|
@@ -54,7 +50,7 @@ permissions:
|
|
|
54
50
|
name: manage_cohorts
|
|
55
51
|
display_name: Manage cohorts
|
|
56
52
|
description: Enable cohorts, create and configure cohorts, and assign or move learners between cohorts manually or through CSV uploads.
|
|
57
|
-
category_id:
|
|
53
|
+
category_id: course_cohorts_content_groups
|
|
58
54
|
scopes:
|
|
59
55
|
- course-v1
|
|
60
56
|
icon: Settings
|
|
@@ -6,7 +6,7 @@ priority: 100
|
|
|
6
6
|
permission_categories:
|
|
7
7
|
- id: course_learner_grading
|
|
8
8
|
display_name: Learner grading
|
|
9
|
-
description: Permissions for viewing learner grades and using grading tools
|
|
9
|
+
description: Permissions for viewing learner grades and using grading tools in the Instructor Dashboard.
|
|
10
10
|
icon: Grading
|
|
11
11
|
|
|
12
12
|
permissions:
|
|
@@ -42,6 +42,15 @@ class UserAssignmentSortField(BaseEnum):
|
|
|
42
42
|
EMAIL = "email"
|
|
43
43
|
|
|
44
44
|
|
|
45
|
+
class RoleSortField(BaseEnum):
|
|
46
|
+
"""Enum for the role catalog fields to sort by."""
|
|
47
|
+
|
|
48
|
+
DISPLAY_NAME = "display_name"
|
|
49
|
+
SCOPE_TYPE = "scope_type"
|
|
50
|
+
USER_COUNT = "user_count"
|
|
51
|
+
UPDATED_AT = "updated_at"
|
|
52
|
+
|
|
53
|
+
|
|
45
54
|
class SortOrder(BaseEnum):
|
|
46
55
|
"""Enum for the order to sort by."""
|
|
47
56
|
|