openslides_backend/action/actions/committee/committee_common_mixin.py
def update_instance(self, instance: Dict[str, Any]) -> Dict[str, Any]:
        """
        Check if own committee is forwarded or received explicitly,
        it may not be excluded by the opposite setting
        """
        instance = super().update_instance(instance)
        if (
            instance.get("forward_to_committee_ids") is None
            or instance.get("receive_forwardings_from_committee_ids") is None
        ):
            return instance
        id = instance.get("id")
        if (id in instance.get("forward_to_committee_ids", [])) != (
            id in instance.get("receive_forwardings_from_committee_ids", [])
        ):
            raise ActionException(
                "Forwarding or receiving to/from own must be configured in both directions!"
            )
        return instance

        Check if own committee is forwarded or received explicitly,
        it may not be excluded by the opposite setting
        
Check if own committee is forwarded or received explicitly,
it may not be excluded by the opposite setting
Check if own committee is forwarded or received explicitly it may not be excluded by the opposite setting
def update_instance(self, instance: Dict[str, Any]) -> Dict[str, Any]:
        instance = super().update_instance(instance)
        if (
            instance.get("forward_to_committee_ids") is None
            or instance.get("receive_forwardings_from_committee_ids") is None
        ):
            return instance
        id = instance.get("id")
        if (id in instance.get("forward_to_committee_ids", [])) != (
            id in instance.get("receive_forwardings_from_committee_ids", [])
        ):
            raise ActionException(
                "Forwarding or receiving to/from own must be configured in both directions!"
            )
        return instance
def update_instance ( self , instance : Dict [ str , Any ] ) -> Dict [ str , Any ] : instance = super ( ) . update_instance ( instance ) if ( instance . get ( "forward_to_committee_ids" ) is None or instance . get ( "receive_forwardings_from_committee_ids" ) is None ) : return instance id = instance . get ( "id" ) if ( id in instance . get ( "forward_to_committee_ids" , [ ] ) ) != ( id in instance . get ( "receive_forwardings_from_committee_ids" , [ ] ) ) : raise ActionException ( "Forwarding or receiving to/from own must be configured in both directions!" ) return instance
Check if own committee is forwarded or received explicitly,
it may not be excluded by the opposite setting
Check if own committee is forwarded or received explicitly it may not be excluded by the opposite setting
"""
        Check if own committee is forwarded or received explicitly,
        it may not be excluded by the opposite setting
        """
self
instance
Dict[str, Any]