Skip to content

Improve the enforcement calls in the code #104

Closed

Description

@MaferMazu

Description

I just noticed that we don't have an "elegant" way to check the permissions for the edx-platform endpoints.
We have the decorator and the permission classes, but they are only for the authz rest_api. So the checks in edx-platform are only booleans (they don't manage permission-denied responses).

We will need a way to use this enforcement and manage permission-denied situations.

Context

This is what we currently use in library rest apis: https://github.com/openedx/edx-platform/blob/d91676fcb43c9d40720fd6a5a5f617b73c4e63bb/openedx/core/djangoapps/content_libraries/api/libraries.py#L310

Currently, this is the only way I know I can use the openedx-authz enforcement in the edx-platform code: openedx/openedx-platform#37501 (but right now we are relying on old code permission-denied managment)

Activity

  1. self-assigned this
    on Oct 17, 2025
  2. MaferMazu commented on Oct 17, 2025

    @MaferMazu
    ContributorAuthor

    We'll need a more general decorator and permission classes, or we'll need a function that handles permissions better.

  3. added
    MVP
    on Oct 22, 2025
  4. moved this to Ready for Development in RBAC AuthZ Boardon Oct 22, 2025
  5. moved this from Ready for Development to In Progress in RBAC AuthZ Boardon Oct 22, 2025
  6. MaferMazu commented on Nov 5, 2025

    @MaferMazu
    ContributorAuthor

    We are handle it in openedx/openedx-platform#37501

  7. moved this from In Progress to Done in RBAC AuthZ Boardon Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

MVP

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions