From ec9cdfc7a9a679f71cfec10a38832d1bab1bf32c Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Tue, 5 Jan 2021 19:09:50 +0100 Subject: [PATCH] Fix permissions in example data rename superadmin to admin Rename user perm enum values to strings step internal_item --- docs/example-data.json | 195 ++++++++++++++++++++--------------------- 1 file changed, 97 insertions(+), 98 deletions(-) diff --git a/docs/example-data.json b/docs/example-data.json index d1f33fbfd..30f90e776 100644 --- a/docs/example-data.json +++ b/docs/example-data.json @@ -222,7 +222,7 @@ "agenda_number_prefix": "", "agenda_numeral_system": "arabic", "agenda_item_creation": "default_yes", - "agenda_new_items_default_visibility": "2", + "agenda_new_items_default_visibility": "internal", "agenda_show_internal_items_on_projector": false, "list_of_speakers_amount_last_on_projector": 1, @@ -261,7 +261,6 @@ "motions_amendments_text_mode": "freestyle", "motions_amendments_multiple_paragraphs": true, "motions_supporters_min_amount": 1, - "motions_supporters_autoremove": true, "motions_export_title": "Motions", "motions_export_preamble": "an export preamble", "motions_export_submitter_recommendation": true, @@ -350,23 +349,23 @@ "reference_projector_id": 2, "default_group_id": 1, - "superadmin_group_id": 2 + "admin_group_id": 2 }], "group": [ { "id": 1, "name": "Default", - "superadmin_group_for_meeting_id": null, + "admin_group_for_meeting_id": null, "default_group_for_meeting_id": 1, "permissions": [ - "agenda.can_see", - "agenda.can_see_internal_items", - "assignments.can_see", - "core.can_see_frontpage", - "core.can_see_projector", - "mediafiles.can_see", - "motions.can_see", - "users.can_see_name" + "agenda_item.can_see", + "agenda_item.can_see_internals", + "assignment.can_see", + "meeting.can_see_frontpage", + "projector.can_see", + "mediafile.can_see", + "motion.can_see", + "user.can_see" ], "user_ids": [], @@ -382,7 +381,7 @@ { "id": 2, "name": "Admin", - "superadmin_group_for_meeting_id": 1, + "admin_group_for_meeting_id": 1, "default_group_for_meeting_id": null, "permissions": [], @@ -400,29 +399,29 @@ { "id": 3, "name": "Staff", - "superadmin_group_for_meeting_id": null, + "admin_group_for_meeting_id": null, "default_group_for_meeting_id": null, "permissions": [ - "agenda.can_manage", - "agenda.can_see", - "agenda.can_see_internal_items", - "agenda.can_be_speaker", - "assignments.can_manage", - "assignments.can_nominate_other", - "assignments.can_nominate_self", - "assignments.can_see", - "core.can_manage_projector", - "core.can_see_frontpage", - "core.can_see_projector", - "core.can_manage_tags", - "mediafiles.can_manage", - "mediafiles.can_see", - "motions.can_create", - "motions.can_manage", - "motions.can_see", - "users.can_manage", - "users.can_see_extra_data", - "users.can_see_name" + "agenda_item.can_manage", + "agenda_item.can_see", + "agenda_item.can_see_internals", + "agenda_item.can_be_speaker", + "assignment.can_manage", + "assignment.can_nominate_other", + "assignment.can_nominate_self", + "assignment.can_see", + "projector.can_manage", + "meeting.can_see_frontpage", + "projector.can_see", + "tag.can_manage", + "mediafile.can_manage", + "mediafile.can_see", + "motion.can_create", + "motion.can_manage", + "motion.can_see", + "user.can_manage", + "user.can_see_extra_data", + "user.can_see" ], "user_ids": [], @@ -439,19 +438,19 @@ { "id": 5, "name": "Committees", - "superadmin_group_for_meeting_id": null, + "admin_group_for_meeting_id": null, "default_group_for_meeting_id": null, "permissions": [ - "agenda.can_see", - "agenda.can_see_internal_items", - "assignments.can_see", - "core.can_see_frontpage", - "core.can_see_projector", - "mediafiles.can_see", - "motions.can_create", - "motions.can_see", - "motions.can_support", - "users.can_see_name" + "agenda_item.can_see", + "agenda_item.can_see_internals", + "assignment.can_see", + "meeting.can_see_frontpage", + "projector.can_see", + "mediafile.can_see", + "motion.can_create", + "motion.can_see", + "motion.can_support", + "users.can_see" ], "user_ids": [], @@ -467,23 +466,23 @@ { "id": 6, "name": "Delegates", - "superadmin_group_for_meeting_id": null, + "admin_group_for_meeting_id": null, "default_group_for_meeting_id": null, "permissions": [ - "agenda.can_see", - "agenda.can_see_internal_items", - "agenda.can_be_speaker", - "assignments.can_nominate_other", - "assignments.can_nominate_self", - "assignments.can_see", - "core.can_see_frontpage", - "core.can_see_projector", - "mediafiles.can_see", - "motions.can_create", - "motions.can_manage", - "motions.can_see", - "motions.can_support", - "users.can_see_name" + "agenda_item.can_see", + "agenda_item.can_see_internals", + "agenda_item.can_be_speaker", + "assignment.can_nominate_other", + "assignment.can_nominate_self", + "assignment.can_see", + "meeting.can_see_frontpage", + "projector.can_see", + "mediafile.can_see", + "motion.can_create", + "motion.can_manage", + "motion.can_see", + "motion.can_support", + "user.can_see" ], "user_ids": [2], @@ -534,7 +533,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 1, + "type": "common", "is_internal": false, "is_hidden": false, "duration": null, @@ -554,7 +553,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 2, + "type": "internal", "is_internal": true, "is_hidden": false, "duration": null, @@ -574,7 +573,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 1, + "type": "common", "is_internal": false, "is_hidden": false, "duration": null, @@ -594,7 +593,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 2, + "type": "internal", "is_internal": true, "is_hidden": false, "duration": null, @@ -614,7 +613,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 2, + "type": "internal", "is_internal": true, "is_hidden": false, "duration": null, @@ -634,7 +633,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 1, + "type": "common", "is_internal": false, "is_hidden": false, "duration": null, @@ -654,7 +653,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 1, + "type": "common", "is_internal": false, "is_hidden": false, "duration": null, @@ -674,7 +673,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 1, + "type": "common", "is_internal": false, "is_hidden": false, "duration": null, @@ -694,7 +693,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 3, + "type": "hidden", "is_internal": false, "is_hidden": true, "duration": null, @@ -714,7 +713,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 1, + "type": "common", "is_internal": false, "is_hidden": false, "duration": null, @@ -734,7 +733,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 2, + "type": "internal", "is_internal": true, "is_hidden": false, "duration": null, @@ -754,7 +753,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 2, + "type": "internal", "is_internal": true, "is_hidden": false, "duration": null, @@ -774,7 +773,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 2, + "type": "internal", "is_internal": true, "is_hidden": false, "duration": null, @@ -794,7 +793,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 2, + "type": "internal", "is_internal": true, "is_hidden": false, "duration": null, @@ -814,7 +813,7 @@ "item_number": "", "comment": null, "closed": false, - "type": 2, + "type": "internal", "is_internal": true, "is_hidden": false, "duration": null, @@ -1534,7 +1533,7 @@ "id": 4, "rejected": false, "internal": false, - "type": 2, + "type": "deletion", "other_description": "", "line_from": 1, "line_to": 2, @@ -1548,7 +1547,7 @@ "id": 5, "rejected": false, "internal": false, - "type": 0, + "type": "replacement", "other_description": "", "line_from": 1, "line_to": 2, @@ -1570,7 +1569,7 @@ "allow_submitter_edit": true, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [2, 3, 4], @@ -1592,7 +1591,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1614,7 +1613,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1636,7 +1635,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1658,7 +1657,7 @@ "allow_submitter_edit": true, "set_number": false, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [6, 9, 14], @@ -1680,7 +1679,7 @@ "allow_submitter_edit": true, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [7, 8, 9, 10, 11, 12, 13], @@ -1702,7 +1701,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1724,7 +1723,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1746,7 +1745,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1768,7 +1767,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1790,7 +1789,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1812,7 +1811,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1834,7 +1833,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1856,7 +1855,7 @@ "allow_submitter_edit": false, "set_number": true, "show_state_extension_field": false, - "merge_amendment_into_final": 0, + "merge_amendment_into_final": "undefined", "show_recommendation_extension_field": false, "next_state_ids": [], @@ -1898,7 +1897,7 @@ "description": "", "type": "analog", "pollmethod": "YNA", - "state": 3, + "state": "finished", "min_votes_amount": 1, "max_votes_amount": 1, "allow_multiple_votes_per_candidate": false, @@ -1927,7 +1926,7 @@ "description": "", "type": "analog", "pollmethod": "YNA", - "state": 1, + "state": "created", "min_votes_amount": 1, "max_votes_amount": 1, "allow_multiple_votes_per_candidate": false, @@ -1956,7 +1955,7 @@ "description": "", "type": "analog", "pollmethod": "YNA", - "state": 1, + "state": "created", "min_votes_amount": 1, "max_votes_amount": 1, "allow_multiple_votes_per_candidate": false, @@ -1985,7 +1984,7 @@ "description": "", "type": "analog", "pollmethod": "Y", - "state": 3, + "state": "finished", "min_votes_amount": 1, "max_votes_amount": 1, "allow_multiple_votes_per_candidate": false, @@ -2014,7 +2013,7 @@ "description": "", "type": "named", "pollmethod": "Y", - "state": 3, + "state": "finished", "min_votes_amount": 1, "max_votes_amount": 1, "allow_multiple_votes_per_candidate": false, @@ -2299,7 +2298,7 @@ "title": "Wahl", "description": "", "open_posts": 1, - "phase": 1, + "phase": "voting", "default_poll_description": "", "number_poll_candidates": false, @@ -2319,7 +2318,7 @@ "title": "2. Wahl", "description": "

B-Ware

", "open_posts": 1, - "phase": 0, + "phase": "search", "default_poll_description": "", "number_poll_candidates": true,