Skip to content

Commit

Permalink
fix(site): don't remove permissions for archived sites
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Nov 5, 2024
1 parent 411aa95 commit bf4b9dd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions press/press/doctype/site/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -2703,11 +2703,6 @@ def site_cleanup_after_archive(site):
delete_site_domains(site)
delete_site_subdomain(site)
release_name(site)
delete_permissions(site)


def delete_permissions(site):
frappe.db.delete("Press Role Permission", {"site": site})


def delete_site_subdomain(site):
Expand Down

0 comments on commit bf4b9dd

Please sign in to comment.