Skip to content

Commit

Permalink
fix(site): consider central benches as public
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Jul 3, 2024
1 parent 3c67e2a commit 1e0f98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions press/press/doctype/site/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ def get_doc(self, doc):
from press.api.client import get

group = frappe.db.get_value(
"Release Group", self.group, ["title", "public", "team"], as_dict=1
"Release Group", self.group, ["title", "public", "team", "central_bench"], as_dict=1
)
doc.group_title = group.title
doc.group_team = group.team
doc.group_public = group.public
doc.group_public = group.public or group.central_bench
doc.owner_email = frappe.db.get_value("Team", self.team, "user")
doc.current_usage = self.current_usage
doc.current_plan = get("Site Plan", self.plan) if self.plan else None
Expand Down

0 comments on commit 1e0f98a

Please sign in to comment.