diff --git a/core/screens/spaces/appointments/components/AppointmentCreateEditForm.tsx b/core/screens/spaces/appointments/components/AppointmentCreateEditForm.tsx index dd087d66f31708de66c2a962ce27bb535444a5a7..9ed985098e2f92202b1cbc91720920b7de484e53 100644 --- a/core/screens/spaces/appointments/components/AppointmentCreateEditForm.tsx +++ b/core/screens/spaces/appointments/components/AppointmentCreateEditForm.tsx @@ -61,7 +61,14 @@ const AppointmentCreateEditForm = ({ space, initialAppointment, headerTitle, onS > <AppointmentInputForm space={space} - initialAppointment={initialAppointment ?? getAppointmentDefaultInitialState({ spaceId: space.id })} + initialAppointment={ + initialAppointment ?? + getAppointmentDefaultInitialState({ + spaceId: space.id, + // only admins can create spaces that are not inviteOnly, so for non-admins inviteOnly needs to be set to true + inviteOnly: !space?.connectionStatusToMyself?.includes(SpaceConnectionType.ADMINISTRATOR), + }) + } onSubmit={onSubmit} onBackButtonPress={() => showConfirmationModal(true)} />