Skip to content

Commit

Permalink
fix: guest user will be able to view "Shop by Category" (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihantra-Patel authored Oct 7, 2024
1 parent 943da19 commit 1e38a3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions webshop/setup/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,18 @@ def add_custom_fields():
]
}

frappe.make_property_setter(
{
"doctype": "Item Group",
"doctype_or_field": "DocType",
"fieldname": "allow_guest_to_view",
"property": "allow_guest_to_view",
"value": 1,
"property_type": "Check"
},
is_system_generated=True,
)

return create_custom_fields(custom_fields)

def navbar_add_products_link():
Expand Down

0 comments on commit 1e38a3f

Please sign in to comment.