Skip to content

Commit 8a49010

Browse files
authored
fix: updating condition to not show empty session in user section (#7465)
1 parent 16e386e commit 8a49010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/speakers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def before_update_object(self, speaker, data, view_kwargs):
190190
'Organizer access required to override email',
191191
)
192192
if (
193-
data.get('is_email_overridden')
193+
not data.get('is_email_overridden')
194194
and has_access('is_organizer', event_id=speaker.event_id)
195195
and not data.get('email')
196196
):

0 commit comments

Comments
 (0)