fix: ignore share permission while sharing doc with approver
diff --git a/erpnext/hr/utils.py b/erpnext/hr/utils.py
index e23dba4..190eb4f 100644
--- a/erpnext/hr/utils.py
+++ b/erpnext/hr/utils.py
@@ -508,7 +508,9 @@
 def share_doc_with_approver(doc, user):
 	# if approver does not have permissions, share
 	if not frappe.has_permission(doc=doc, ptype="submit", user=user):
-		frappe.share.add(doc.doctype, doc.name, user, submit=1)
+		frappe.share.add(doc.doctype, doc.name, user, submit=1,
+			flags={"ignore_share_permission": True})
+
 		frappe.msgprint(_("Shared with the user {0} with {1} access").format(
 			user, frappe.bold("submit"), alert=True))