From d9555f62f832c22e7d9c5a3e953d4e3ff9147a6c Mon Sep 17 00:00:00 2001 From: Shariq Ansari <30859809+shariquerik@users.noreply.github.com> Date: Mon, 23 Jun 2025 13:27:15 +0530 Subject: [PATCH] chore: resolved conflict --- crm/api/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crm/api/__init__.py b/crm/api/__init__.py index 759bdab0..e0b98221 100644 --- a/crm/api/__init__.py +++ b/crm/api/__init__.py @@ -98,15 +98,11 @@ def accept_invitation(key: str | None = None): @frappe.whitelist() def invite_by_email(emails: str, role: str): -<<<<<<< HEAD - frappe.only_for("Sales Manager") -======= frappe.only_for(["Sales Manager", "System Manager"]) if role not in ["System Manager", "Sales Manager", "Sales User"]: frappe.throw("Cannot invite for this role") ->>>>>>> 03abe0b5 (fix: create crm user on accepting invite) if not emails: return email_string = validate_email_address(emails, throw=False)