fix: don't attempt to delete workspace in prod
This commit is contained in:
parent
81fa146330
commit
bde4e44cf4
1 changed files with 4 additions and 1 deletions
|
|
@ -42,7 +42,10 @@ class Workspace(Document):
|
|||
self.name = doc.name = doc.label = doc.title
|
||||
|
||||
def after_delete(self):
|
||||
if self.module:
|
||||
if disable_saving_as_public():
|
||||
return
|
||||
|
||||
if self.module and frappe.conf.developer_mode:
|
||||
delete_folder(self.module, "Workspace", self.title)
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue