diff --git a/docs/actions/motion.update.md b/docs/actions/motion.update.md index fcc6ef60e..095421103 100644 --- a/docs/actions/motion.update.md +++ b/docs/actions/motion.update.md @@ -45,6 +45,7 @@ If the request user does not have `motion.can_manage`, the fields in the payload * `motion_block_id` * `origin` * `supporter_meeting_user_ids` + * `additional_submitter` * `recommendation_extension` * `start_line_number` * `workflow_timestamp` diff --git a/openslides_backend/action/actions/motion/update.py b/openslides_backend/action/actions/motion/update.py index 2adbfb981..2d906ce0e 100644 --- a/openslides_backend/action/actions/motion/update.py +++ b/openslides_backend/action/actions/motion/update.py @@ -183,6 +183,7 @@ def check_permissions(self, instance: dict[str, Any]) -> None: "category_id", "block_id", "supporter_meeting_user_ids", + "additional_submitter", "recommendation_extension", "start_line_number", "tag_ids", diff --git a/openslides_backend/presenter/get_forwarding_committees.py b/openslides_backend/presenter/get_forwarding_committees.py index ef8783f3f..b0a49b6df 100644 --- a/openslides_backend/presenter/get_forwarding_committees.py +++ b/openslides_backend/presenter/get_forwarding_committees.py @@ -38,11 +38,11 @@ def get_result(self) -> Any: if not has_perm( self.datastore, self.user_id, - Permissions.Motion.CAN_MANAGE, + Permissions.Motion.CAN_MANAGE_METADATA, self.data["meeting_id"], ): msg = "You are not allowed to perform presenter get_forwarding_committees" - msg += f" Missing permission: {Permissions.Motion.CAN_MANAGE}" + msg += f" Missing permission: {Permissions.Motion.CAN_MANAGE_METADATA}" raise PermissionDenied(msg) meeting = self.datastore.get( diff --git a/tests/system/action/motion/test_update.py b/tests/system/action/motion/test_update.py index 62a392f51..dc9ce44fc 100644 --- a/tests/system/action/motion/test_update.py +++ b/tests/system/action/motion/test_update.py @@ -237,6 +237,7 @@ def test_update_correct_2(self) -> None: "category_id": 4, "block_id": 51, "supporter_meeting_user_ids": [], + "additional_submitter": "additional", "tag_ids": [], "attachment_ids": [], "workflow_timestamp": 9876543210, @@ -249,6 +250,7 @@ def test_update_correct_2(self) -> None: assert model.get("category_id") == 4 assert model.get("block_id") == 51 assert model.get("supporter_meeting_user_ids") == [] + assert model.get("additional_submitter") == "additional" assert model.get("tag_ids") == [] assert model.get("attachment_ids") == [] # motion/113 does not exist and should therefore not be present in the relations