Skip to content

Commit 147d533

Browse files
refactor: drop assert to check duplicates
1 parent fa51feb commit 147d533

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

openedx_authz/api/roles.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,6 @@ def assign_role_to_subject_in_scope(
179179
subject: The ID of the subject.
180180
role: The role to assign.
181181
"""
182-
assert (
183-
get_subject_role_assignments_in_scope(subject, scope) == []
184-
), "Subject already has a role in the scope"
185-
186182
# TODO: we need to make some uppercase/lowercase decisions in the lookups
187183
# for now, we assume the caller has done the right thing
188184
# and passed in the correctly namespaced IDs

0 commit comments

Comments
 (0)