Skip to content

Bug: 403 when opening library dashboard as "guillermotest" team member #120

Closed

Description

@gviedma-aulasneo

Current behavior
Opening the library dashboard URL for a library where the user "guillermo test" is a team member returns a 403.

Expected behavior
User can access the dashboard and see the Team Members list if the have "view team member" permission over thar library.

Steps to reproduce

  1. Log in as the team member account “guillermotest” (pass: jajaSalu2)
  2. Open:
    https://apps.singapore.edunext.cloud/admin-console/authz/libraries/lib:OpenedX:CSPROB
  3. Observe the 403 response.

Comments
This may be tied to missing Studio access. Access to this route should depend only on the “view team members” permission, not on Studio access. It is important to note that if you had the "Author" or "Admin" role in the previous version, you automatically gained access to the studio and library, and that behavior should remain unchanged.

Activity

  1. changed the title [-]403 when opening library dashboard as "guillermotest" team member[/-] [+]Bug: 403 when opening library dashboard as "guillermotest" team member[/+] on Oct 27, 2025
  2. added
    MVP
    release blocker
    on Oct 27, 2025
  3. removed
    MVP
    on Oct 27, 2025
  4. self-assigned this
    on Oct 29, 2025
  5. removed
    release blocker
    on Oct 30, 2025
  6. MaferMazu commented on Oct 30, 2025

    @MaferMazu
    Contributor

    @gviedma-aulasneo I assigned myself to this issue. I removed the release blocker tag because the code cut happened.
    I would like to wait a bit to have the final changes in stage and try to reproduce this behavior to see if it is a bug or something we already fixed. Thanks for your patience.

  7. mariajgrimaldi commented on Nov 5, 2025

    @mariajgrimaldi
    Member

    I'll be trying to reproduce this with our latest changes :) I'll report back here

  8. mariajgrimaldi commented on Nov 5, 2025

    @mariajgrimaldi
    Member

    @gviedma-aulasneo, could you share a bit more detail?

    1. How did you assign yourself library team perms?
    2. I manually checked the roles for the library lib:OpenedX:CSPROB and got the following:
    {
      "count": 4,
      "next": null,
      "previous": null,
      "results": [
        {
          "role": "library_admin",
          "permissions": [
            "view_library",
            "manage_library_tags",
            "delete_library",
            "edit_library_content",
            "publish_library_content",
            "reuse_library_content",
            "view_library_team",
            "manage_library_team",
            "create_library_collection",
            "edit_library_collection",
            "delete_library_collection"
          ],
          "user_count": 0
        },
        {
          "role": "library_author",
          "permissions": [
            "view_library",
            "manage_library_tags",
            "edit_library_content",
            "publish_library_content",
            "reuse_library_content",
            "view_library_team",
            "create_library_collection",
            "edit_library_collection",
            "delete_library_collection"
          ],
          "user_count": 0
        },
        {
          "role": "library_contributor",
          "permissions": [
            "view_library",
            "manage_library_tags",
            "edit_library_content",
            "reuse_library_content",
            "view_library_team",
            "create_library_collection",
            "edit_library_collection",
            "delete_library_collection"
          ],
          "user_count": 0
        },
        {
          "role": "library_user",
          "permissions": [
            "view_library",
            "reuse_library_content",
            "view_library_team"
          ],
          "user_count": 0
        }
      ]
    }
    
    1. I'm not sure which previous behavior you mean. I'm testing on a plain Teak install and seeing the same results as in our sandbox. Could you describe what you're seeing so I can try to reproduce it on my end?
  9. gviedma-aulasneo commented on Nov 5, 2025

    @gviedma-aulasneo
    Author
    1. I did it with one of the test users who holds manage_library_team
    2. Have you tried to grant that user a role as a team member? I tried to grant and revoke the role a few times, but it was harder to keep the state as the list had a bug that didn't update correctly at the time.
    3. If a user register and somebody add them to a library team, they gain access to the library and Studio. I use this sandbox https://apps.sandbox.openedx.edly.io/ to test the behavior. Glad to help reproduce the bug in a synchronous session
  10. 12 remaining items

  11. moved this from Ready for Development to In Progress in RBAC AuthZ Boardon Nov 11, 2025
  12. MaferMazu commented on Nov 12, 2025

    @MaferMazu
    Contributor

    This issue has two problems:
    The first one with the filter will be solved with: openedx/openedx-platform#37564
    The second one with the hard-load #133

  13. MaferMazu commented on Nov 12, 2025

    @MaferMazu
    Contributor

    @MaferMazu will test this behavior again and then need to confirm with @gviedma-aulasneo

  14. MaferMazu commented on Nov 13, 2025

    @MaferMazu
    Contributor

    @gviedma-aulasneo this bug is fixed with openedx/openedx-platform#37564 and #133.

    You can test the behavior in the stage!

    Please let us know when you test it, so we can close this issue 🙌

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

Metadata

Metadata

Labels

MVPrelease blocker

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions