Skip to content

[Bug] Role filter displays roles outside of user's scope #161

Description

@MaferMazu

Current behavior

The role filter currently displays all system roles globally, regardless of the user's specific domain or scope access.

Image

Expected behavior

The roles displayed in the filter must be conditionally rendered based on the user's scope permissions:

  • Single Scope: If a user only has roles related to Libraries, the filter should only show library-related roles. The same applies if they only have access to Courses.
  • Multiple Scopes: If a user has roles across different domains (e.g., both Libraries and Courses), the filter should dynamically display all roles belonging to the domains they have access to.

US

As a user navigating the platform,
I want the role filter to only display roles relevant to my assigned scopes,
So that I don't get confused by options I don't have access to.

Metadata

Metadata

Assignees

Labels

release testingAffects the upcoming release (attention needed)verawoodReleased in Verawood

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done
Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions