diff --git a/api/chalicelib/core/reset_password.py b/api/chalicelib/core/reset_password.py index 1baaf82d8..c15a4639b 100644 --- a/api/chalicelib/core/reset_password.py +++ b/api/chalicelib/core/reset_password.py @@ -20,6 +20,5 @@ def reset(data: schemas.ForgetPasswordPayloadSchema): invitation_link = users.generate_new_invitation(user_id=a_users["id"]) email_helper.send_forgot_password(recipient=data.email, invitation_link=invitation_link) else: - print(f"invalid email address [{data.email}]") - return {"errors": ["invalid email address"]} - return {"data": {"state": "success"}} + print(f"!!!invalid email address [{data.email}]") + return {"data": {"state": "A reset link will be sent if this email exists in our system."}} diff --git a/ee/api/chalicelib/core/reset_password.py b/ee/api/chalicelib/core/reset_password.py index 194c37704..bb83cfa3a 100644 --- a/ee/api/chalicelib/core/reset_password.py +++ b/ee/api/chalicelib/core/reset_password.py @@ -20,6 +20,5 @@ def reset(data: schemas.ForgetPasswordPayloadSchema): invitation_link = users.generate_new_invitation(user_id=a_user["id"]) email_helper.send_forgot_password(recipient=data.email, invitation_link=invitation_link) else: - print(f"invalid email address [{data.email}]") - return {"errors": ["invalid email address"]} - return {"data": {"state": "success"}} + print(f"!!!invalid email address [{data.email}]") + return {"data": {"state": "A reset link will be sent if this email exists in our system."}} diff --git a/ee/api/chalicelib/core/signup.py b/ee/api/chalicelib/core/signup.py index 605520df4..b8b0a3e4a 100644 --- a/ee/api/chalicelib/core/signup.py +++ b/ee/api/chalicelib/core/signup.py @@ -70,8 +70,8 @@ def create_step1(data: schemas.UserSignupSchema): ), r AS ( INSERT INTO public.roles(tenant_id, name, description, permissions, protected) - VALUES ((SELECT tenant_id FROM t), 'Owner', 'Owner', '{"SESSION_REPLAY", "DEV_TOOLS", "ERRORS", "METRICS", "ASSIST_LIVE", "ASSIST_CALL"}'::text[], TRUE), - ((SELECT tenant_id FROM t), 'Member', 'Member', '{"SESSION_REPLAY", "DEV_TOOLS", "ERRORS", "METRICS", "ASSIST_LIVE", "ASSIST_CALL"}'::text[], FALSE) + VALUES ((SELECT tenant_id FROM t), 'Owner', 'Owner', '{"SESSION_REPLAY", "DEV_TOOLS", "METRICS", "ASSIST_LIVE", "ASSIST_CALL"}'::text[], TRUE), + ((SELECT tenant_id FROM t), 'Member', 'Member', '{"SESSION_REPLAY", "DEV_TOOLS", "METRICS", "ASSIST_LIVE", "ASSIST_CALL"}'::text[], FALSE) RETURNING * ), u AS ( diff --git a/ee/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql b/ee/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql index 6f7cbea0d..df643cbf7 100644 --- a/ee/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql +++ b/ee/scripts/helm/db/init_dbs/postgresql/1.7.0/1.7.0.sql @@ -6,6 +6,8 @@ $$ SELECT 'v1.7.0-ee' $$ LANGUAGE sql IMMUTABLE; +UPDATE roles +SET permissions=array_remove(permissions, 'ERRORS'); ALTER TABLE IF EXISTS dashboards ADD COLUMN IF NOT