We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa51feb commit 147d533Copy full SHA for 147d533
1 file changed
openedx_authz/api/roles.py
@@ -179,10 +179,6 @@ def assign_role_to_subject_in_scope(
179
subject: The ID of the subject.
180
role: The role to assign.
181
"""
182
- assert (
183
- get_subject_role_assignments_in_scope(subject, scope) == []
184
- ), "Subject already has a role in the scope"
185
-
186
# TODO: we need to make some uppercase/lowercase decisions in the lookups
187
# for now, we assume the caller has done the right thing
188
# and passed in the correctly namespaced IDs
0 commit comments