Skip to content

Commit

Permalink
fix(Workspace): don't check for outdated field
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Aug 21, 2024
1 parent a90b021 commit 906c2d7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions landa/workspace.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
from frappe.desk.doctype.workspace.workspace import Workspace

LANDA_WORKSPACES = (
"Water Body Management",
"Organization Management",
"Order Management",
)


def validate(doc: Workspace, method=None) -> None:
# Custom reports (possibly of other users) should not be visible
if doc.for_user and doc.hide_custom == 0 and doc.extends in LANDA_WORKSPACES:
if doc.for_user and doc.hide_custom == 0:
doc.hide_custom = 1

0 comments on commit 906c2d7

Please sign in to comment.