fix: allow user to save/update custom email (#31337)
This commit is contained in:
@@ -87,6 +87,9 @@ class Zoom(LiveProvider):
|
||||
"""
|
||||
id = 'zoom'
|
||||
name = 'Zoom LTI PRO'
|
||||
additional_parameters = [
|
||||
'custom_instructor_email'
|
||||
]
|
||||
|
||||
@property
|
||||
def is_enabled(self):
|
||||
|
||||
@@ -44,12 +44,7 @@ class LtiSerializer(serializers.ModelSerializer):
|
||||
validate_email(custom_instructor_email)
|
||||
except ValidationError as error:
|
||||
raise serializers.ValidationError(f'{custom_instructor_email} is not valid email address') from error
|
||||
return value
|
||||
|
||||
if not requires_email:
|
||||
return value
|
||||
|
||||
raise serializers.ValidationError('custom_instructor_email is required value in additional_parameters')
|
||||
return value
|
||||
|
||||
def create(self, validated_data):
|
||||
lti_config = validated_data.pop('lti_config', None)
|
||||
|
||||
Reference in New Issue
Block a user