Przeglądaj źródła

fix: don't attempt to delete workspace in prod

(cherry picked from commit bde4e44cf4)
version-14
Ankush Menat 2 lat temu
committed by Ankush Menat
rodzic
commit
0202f774d0
1 zmienionych plików z 4 dodań i 1 usunięć
  1. +4
    -1
      frappe/desk/doctype/workspace/workspace.py

+ 4
- 1
frappe/desk/doctype/workspace/workspace.py Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz