Merge remote-tracking branch 'origin/api-v1.7.0' into dev
This commit is contained in:
commit
4517820660
4 changed files with 8 additions and 8 deletions
|
|
@ -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."}}
|
||||
|
|
|
|||
|
|
@ -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."}}
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue