File tree Expand file tree Collapse file tree
openedx_authz/rest_api/v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ class PermissionValidationResponseSerializer(PermissionValidationSerializer): #
4242class AddUserToRoleWithScopeSerializer (RoleMixin , ScopeMixin ): # pylint: disable=abstract-method
4343 """Serializer for adding a user to a role with a scope."""
4444
45- users = serializers .ListField (child = serializers .CharField (max_length = 255 ))
45+ users = serializers .ListField (child = serializers .CharField (max_length = 255 ), allow_empty = False )
4646
4747
4848class RemoveUserFromRoleWithScopeSerializer (RoleMixin , ScopeMixin ): # pylint: disable=abstract-method
4949 """Serializer for removing a user from a role with a scope."""
5050
51- users = CommaSeparatedListField ()
51+ users = CommaSeparatedListField (allow_blank = False )
5252
5353
5454class ListUsersInRoleWithScopeSerializer (ScopeMixin ): # pylint: disable=abstract-method
You can’t perform that action at this time.
0 commit comments