We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 624ea8f commit 75e61deCopy full SHA for 75e61de
1 file changed
openedx_authz/api/roles.py
@@ -251,9 +251,6 @@ def get_subject_role_assignments(subject: SubjectData) -> list[RoleAssignmentDat
251
GroupingPolicyIndex.SUBJECT.value, subject.subject_id
252
):
253
254
- assert policy[GroupingPolicyIndex.ROLE.value] not in [
255
- role.role.name for role in role_assignments
256
- ], "Duplicate role names found"
257
258
role_name = policy[GroupingPolicyIndex.ROLE.value]
259
permissions = get_permissions_for_roles(RoleData(name=role_name))[
0 commit comments