diff --git a/src/client/components/views/collections/Edit/Auth/index.js b/src/client/components/views/collections/Edit/Auth/index.js index c44897f0c8..7cebcaccec 100644 --- a/src/client/components/views/collections/Edit/Auth/index.js +++ b/src/client/components/views/collections/Edit/Auth/index.js @@ -34,7 +34,7 @@ const Auth = (props) => { label="Email" autoComplete="email" /> - {changingPassword && ( + {(changingPassword || requirePassword) && (
{ const collectionPermissions = permissions?.[slug]; const apiURL = `${serverURL}${api}/${slug}/${id}`; - let action = `${serverURL}${api}/${slug}${isEditing ? `/${id}` : ''}?depth=0`; + let action = `${serverURL}${api}/${slug}${isEditing ? `/${id}` : ''}`; const hasSavePermission = (isEditing && collectionPermissions?.update?.permission) || (!isEditing && collectionPermissions?.create?.permission); if (auth && !isEditing) { action = `${action}/register`; } + action += '?depth=0'; + return (