From 036a145a6cdbcca5f42b752e65a0cf841b4b1a5e Mon Sep 17 00:00:00 2001 From: meichthys Date: Sun, 16 Nov 2025 04:11:25 +0000 Subject: [PATCH] Move all permissions definitions into doctype Fixes #82 --- .../church_presentation/church_presentation.json | 15 +-------------- .../church_expense_type/church_expense_type.json | 8 +------- .../doctype/church_fund/church_fund.json | 8 +------- .../doctype/church_belief/church_belief.json | 9 +-------- .../church_information/church_information.json | 7 +------ .../doctype/church_event/church_event.json | 11 +---------- .../church_event_type/church_event_type.json | 12 +----------- .../doctype/church_song/church_song.json | 15 +-------------- .../church_missionary/church_missionary.json | 10 +--------- .../church_missionary_agency.json | 9 +-------- .../church_missionary_support_frequency.json | 9 +-------- .../doctype/church_family/church_family.json | 12 +----------- .../church_member_status.json | 9 +-------- .../doctype/church_person/church_person.json | 6 +----- .../church_person_relation_type.json | 12 +----------- .../church_role_type/church_role_type.json | 9 +-------- .../doctype/church_prayer/church_prayer.json | 7 +------ .../church_prayer_request_status.json | 12 +----------- .../church_prayer_request_type.json | 12 +----------- .../church_bible_book/church_bible_book.json | 9 +-------- .../church_bible_reference.json | 15 +-------------- .../church_bible_translation.json | 11 +---------- 22 files changed, 22 insertions(+), 205 deletions(-) diff --git a/church/church_communications/doctype/church_presentation/church_presentation.json b/church/church_communications/doctype/church_presentation/church_presentation.json index 2ceb501..216a260 100644 --- a/church/church_communications/doctype/church_presentation/church_presentation.json +++ b/church/church_communications/doctype/church_presentation/church_presentation.json @@ -31,7 +31,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-13 23:58:34.506328", + "modified": "2025-11-15 22:53:19.321184", "modified_by": "Administrator", "module": "Church Communications", "name": "Church Presentation", @@ -62,19 +62,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "select": 1, - "share": 1, - "write": 1 } ], "row_format": "Dynamic", diff --git a/church/church_finances/doctype/church_expense_type/church_expense_type.json b/church/church_finances/doctype/church_expense_type/church_expense_type.json index dcd80ec..223d691 100644 --- a/church/church_finances/doctype/church_expense_type/church_expense_type.json +++ b/church/church_finances/doctype/church_expense_type/church_expense_type.json @@ -106,7 +106,7 @@ "link_fieldname": "type" } ], - "modified": "2025-11-13 23:57:46.458068", + "modified": "2025-11-15 22:52:18.102093", "modified_by": "Administrator", "module": "Church Finances", "name": "Church Expense Type", @@ -138,12 +138,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "read": 1, - "report": 1, - "role": "Church User" } ], "row_format": "Dynamic", diff --git a/church/church_finances/doctype/church_fund/church_fund.json b/church/church_finances/doctype/church_fund/church_fund.json index 5efd8fd..2edb547 100644 --- a/church/church_finances/doctype/church_fund/church_fund.json +++ b/church/church_finances/doctype/church_fund/church_fund.json @@ -76,7 +76,7 @@ "table_fieldname": "donations" } ], - "modified": "2025-11-13 23:57:46.807646", + "modified": "2025-11-15 22:52:49.198523", "modified_by": "Administrator", "module": "Church Finances", "name": "Church Fund", @@ -107,12 +107,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "print": 1, - "read": 1, - "report": 1, - "role": "Church User" } ], "quick_entry": 1, diff --git a/church/church_foundations/doctype/church_belief/church_belief.json b/church/church_foundations/doctype/church_belief/church_belief.json index 06c5092..bb8776f 100644 --- a/church/church_foundations/doctype/church_belief/church_belief.json +++ b/church/church_foundations/doctype/church_belief/church_belief.json @@ -42,7 +42,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-13 23:58:58.146889", + "modified": "2025-11-15 22:53:58.845901", "modified_by": "Administrator", "module": "Church Foundations", "name": "Church Belief", @@ -73,13 +73,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User" } ], "row_format": "Dynamic", diff --git a/church/church_foundations/doctype/church_information/church_information.json b/church/church_foundations/doctype/church_information/church_information.json index ea61949..3d01ae7 100644 --- a/church/church_foundations/doctype/church_information/church_information.json +++ b/church/church_foundations/doctype/church_information/church_information.json @@ -63,7 +63,7 @@ "index_web_pages_for_search": 1, "issingle": 1, "links": [], - "modified": "2025-11-13 23:58:58.054889", + "modified": "2025-11-15 22:53:46.638825", "modified_by": "Administrator", "module": "Church Foundations", "name": "Church Information", @@ -89,11 +89,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "print": 1, - "read": 1, - "role": "Church User" } ], "row_format": "Dynamic", diff --git a/church/church_ministries/doctype/church_event/church_event.json b/church/church_ministries/doctype/church_event/church_event.json index eba114f..16c789c 100644 --- a/church/church_ministries/doctype/church_event/church_event.json +++ b/church/church_ministries/doctype/church_event/church_event.json @@ -135,7 +135,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-13 23:59:23.370338", + "modified": "2025-11-15 22:56:41.992819", "modified_by": "Administrator", "module": "Church Ministries", "name": "Church Event", @@ -166,15 +166,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "write": 1 } ], "row_format": "Dynamic", diff --git a/church/church_ministries/doctype/church_event_type/church_event_type.json b/church/church_ministries/doctype/church_event_type/church_event_type.json index 21ac8b9..86c7152 100644 --- a/church/church_ministries/doctype/church_event_type/church_event_type.json +++ b/church/church_ministries/doctype/church_event_type/church_event_type.json @@ -55,7 +55,7 @@ "link_fieldname": "type" } ], - "modified": "2025-11-13 23:59:23.467826", + "modified": "2025-11-15 22:57:02.207658", "modified_by": "Administrator", "module": "Church Ministries", "name": "Church Event Type", @@ -86,16 +86,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "delete": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "write": 1 } ], "quick_entry": 1, diff --git a/church/church_ministries/doctype/church_song/church_song.json b/church/church_ministries/doctype/church_song/church_song.json index 43c3b3b..cec2191 100644 --- a/church/church_ministries/doctype/church_song/church_song.json +++ b/church/church_ministries/doctype/church_song/church_song.json @@ -57,7 +57,7 @@ "link_fieldname": "item" } ], - "modified": "2025-11-13 23:59:23.630567", + "modified": "2025-11-15 22:54:14.635022", "modified_by": "Administrator", "module": "Church Ministries", "name": "Church Song", @@ -88,19 +88,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "select": 1, - "share": 1, - "write": 1 } ], "row_format": "Dynamic", diff --git a/church/church_missions/doctype/church_missionary/church_missionary.json b/church/church_missions/doctype/church_missionary/church_missionary.json index 6ac3833..55634ae 100644 --- a/church/church_missions/doctype/church_missionary/church_missionary.json +++ b/church/church_missions/doctype/church_missionary/church_missionary.json @@ -133,7 +133,7 @@ "image_field": "photo", "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-13 23:59:48.323882", + "modified": "2025-11-15 22:54:32.224489", "modified_by": "Administrator", "module": "Church Missions", "name": "Church Missionary", @@ -164,14 +164,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "write": 1 } ], "row_format": "Dynamic", diff --git a/church/church_missions/doctype/church_missionary_agency/church_missionary_agency.json b/church/church_missions/doctype/church_missionary_agency/church_missionary_agency.json index 45a8306..6c4d453 100644 --- a/church/church_missions/doctype/church_missionary_agency/church_missionary_agency.json +++ b/church/church_missions/doctype/church_missionary_agency/church_missionary_agency.json @@ -84,7 +84,7 @@ "link_fieldname": "agency" } ], - "modified": "2025-11-13 23:59:47.997471", + "modified": "2025-11-15 22:54:24.063990", "modified_by": "Administrator", "module": "Church Missions", "name": "Church Missionary Agency", @@ -115,13 +115,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User" } ], "quick_entry": 1, diff --git a/church/church_missions/doctype/church_missionary_support_frequency/church_missionary_support_frequency.json b/church/church_missions/doctype/church_missionary_support_frequency/church_missionary_support_frequency.json index 46f57b9..2be1607 100644 --- a/church/church_missions/doctype/church_missionary_support_frequency/church_missionary_support_frequency.json +++ b/church/church_missions/doctype/church_missionary_support_frequency/church_missionary_support_frequency.json @@ -36,7 +36,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-13 23:59:48.185963", + "modified": "2025-11-15 22:54:40.556718", "modified_by": "Administrator", "module": "Church Missions", "name": "Church Missionary Support Frequency", @@ -67,13 +67,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User" } ], "row_format": "Dynamic", diff --git a/church/church_people/doctype/church_family/church_family.json b/church/church_people/doctype/church_family/church_family.json index f8aaa3d..2621769 100644 --- a/church/church_people/doctype/church_family/church_family.json +++ b/church/church_people/doctype/church_family/church_family.json @@ -70,7 +70,7 @@ "link_fieldname": "recipient" } ], - "modified": "2025-11-14 00:00:11.907274", + "modified": "2025-11-15 22:55:14.237301", "modified_by": "Administrator", "module": "Church People", "name": "Church Family", @@ -102,16 +102,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "delete": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "write": 1 } ], "quick_entry": 1, diff --git a/church/church_people/doctype/church_member_status/church_member_status.json b/church/church_people/doctype/church_member_status/church_member_status.json index a88df3d..12b0fb7 100644 --- a/church/church_people/doctype/church_member_status/church_member_status.json +++ b/church/church_people/doctype/church_member_status/church_member_status.json @@ -43,7 +43,7 @@ "link_fieldname": "membership_status" } ], - "modified": "2025-11-14 00:00:12.390435", + "modified": "2025-11-15 22:55:21.448686", "modified_by": "Administrator", "module": "Church People", "name": "Church Member Status", @@ -74,13 +74,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User" } ], "quick_entry": 1, diff --git a/church/church_people/doctype/church_person/church_person.json b/church/church_people/doctype/church_person/church_person.json index 8ac21ff..2a8f6c4 100644 --- a/church/church_people/doctype/church_person/church_person.json +++ b/church/church_people/doctype/church_person/church_person.json @@ -320,7 +320,7 @@ "link_fieldname": "recipient" } ], - "modified": "2025-11-15 01:12:45.338412", + "modified": "2025-11-15 22:57:32.308071", "modified_by": "Administrator", "module": "Church People", "name": "Church Person", @@ -352,10 +352,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "read": 1, - "role": "Church User" } ], "quick_entry": 1, diff --git a/church/church_people/doctype/church_person_relation_type/church_person_relation_type.json b/church/church_people/doctype/church_person_relation_type/church_person_relation_type.json index 8e17ebb..b5a4f8e 100644 --- a/church/church_people/doctype/church_person_relation_type/church_person_relation_type.json +++ b/church/church_people/doctype/church_person_relation_type/church_person_relation_type.json @@ -38,7 +38,7 @@ "table_fieldname": "relationships" } ], - "modified": "2025-11-14 00:00:12.212833", + "modified": "2025-11-15 22:55:00.261062", "modified_by": "Administrator", "module": "Church People", "name": "Church Person Relation Type", @@ -69,16 +69,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "delete": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "write": 1 } ], "quick_entry": 1, diff --git a/church/church_people/doctype/church_role_type/church_role_type.json b/church/church_people/doctype/church_role_type/church_role_type.json index e3d5d02..54013cd 100644 --- a/church/church_people/doctype/church_role_type/church_role_type.json +++ b/church/church_people/doctype/church_role_type/church_role_type.json @@ -37,7 +37,7 @@ "table_fieldname": "church_roles" } ], - "modified": "2025-11-14 00:00:11.746942", + "modified": "2025-11-15 22:54:52.639182", "modified_by": "Administrator", "module": "Church People", "name": "Church Role Type", @@ -68,13 +68,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User" } ], "row_format": "Dynamic", diff --git a/church/church_prayers/doctype/church_prayer/church_prayer.json b/church/church_prayers/doctype/church_prayer/church_prayer.json index 28a4cb7..f64f33d 100644 --- a/church/church_prayers/doctype/church_prayer/church_prayer.json +++ b/church/church_prayers/doctype/church_prayer/church_prayer.json @@ -59,7 +59,7 @@ "link_fieldname": "item" } ], - "modified": "2025-11-14 00:00:36.954400", + "modified": "2025-11-15 22:56:20.377317", "modified_by": "Administrator", "module": "Church Prayers", "name": "Church Prayer", @@ -90,11 +90,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "read": 1, - "role": "Church User" } ], "row_format": "Dynamic", diff --git a/church/church_prayers/doctype/church_prayer_request_status/church_prayer_request_status.json b/church/church_prayers/doctype/church_prayer_request_status/church_prayer_request_status.json index 2ee946c..cb03de5 100644 --- a/church/church_prayers/doctype/church_prayer_request_status/church_prayer_request_status.json +++ b/church/church_prayers/doctype/church_prayer_request_status/church_prayer_request_status.json @@ -32,7 +32,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-14 00:00:36.623763", + "modified": "2025-11-15 22:55:34.948117", "modified_by": "Administrator", "module": "Church Prayers", "name": "Church Prayer Request Status", @@ -63,16 +63,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "delete": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "write": 1 } ], "quick_entry": 1, diff --git a/church/church_prayers/doctype/church_prayer_request_type/church_prayer_request_type.json b/church/church_prayers/doctype/church_prayer_request_type/church_prayer_request_type.json index ae36657..a112670 100644 --- a/church/church_prayers/doctype/church_prayer_request_type/church_prayer_request_type.json +++ b/church/church_prayers/doctype/church_prayer_request_type/church_prayer_request_type.json @@ -33,7 +33,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-14 00:00:37.077322", + "modified": "2025-11-15 22:56:08.171517", "modified_by": "Administrator", "module": "Church Prayers", "name": "Church Prayer Request Type", @@ -64,16 +64,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "delete": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "write": 1 } ], "quick_entry": 1, diff --git a/church/church_study/doctype/church_bible_book/church_bible_book.json b/church/church_study/doctype/church_bible_book/church_bible_book.json index 6211f16..7f84dcb 100644 --- a/church/church_study/doctype/church_bible_book/church_bible_book.json +++ b/church/church_study/doctype/church_bible_book/church_bible_book.json @@ -41,7 +41,7 @@ "link_fieldname": "book" } ], - "modified": "2025-11-14 00:00:57.951498", + "modified": "2025-11-15 22:56:27.649435", "modified_by": "Administrator", "module": "Church Study", "name": "Church Bible Book", @@ -73,13 +73,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User" } ], "row_format": "Dynamic", diff --git a/church/church_study/doctype/church_bible_reference/church_bible_reference.json b/church/church_study/doctype/church_bible_reference/church_bible_reference.json index 79b6fd0..cb029e5 100644 --- a/church/church_study/doctype/church_bible_reference/church_bible_reference.json +++ b/church/church_study/doctype/church_bible_reference/church_bible_reference.json @@ -68,7 +68,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-14 00:00:58.139909", + "modified": "2025-11-15 22:56:34.302563", "modified_by": "Administrator", "module": "Church Study", "name": "Church Bible Reference", @@ -99,19 +99,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "delete": 1, - "email": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "select": 1, - "share": 1, - "write": 1 } ], "row_format": "Dynamic", diff --git a/church/church_study/doctype/church_bible_translation/church_bible_translation.json b/church/church_study/doctype/church_bible_translation/church_bible_translation.json index 5d0a5b0..04f9744 100644 --- a/church/church_study/doctype/church_bible_translation/church_bible_translation.json +++ b/church/church_study/doctype/church_bible_translation/church_bible_translation.json @@ -37,7 +37,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-11-14 00:00:58.286949", + "modified": "2025-11-15 22:56:50.550989", "modified_by": "Administrator", "module": "Church Study", "name": "Church Bible Translation", @@ -68,15 +68,6 @@ "select": 1, "share": 1, "write": 1 - }, - { - "create": 1, - "export": 1, - "print": 1, - "read": 1, - "report": 1, - "role": "Church User", - "write": 1 } ], "row_format": "Dynamic",