Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new motion fields #2119

Closed
jsangmeister opened this issue Jan 18, 2024 · 0 comments · Fixed by #2129
Closed

Add new motion fields #2119

jsangmeister opened this issue Jan 18, 2024 · 0 comments · Fixed by #2129
Assignees
Labels
Milestone

Comments

@jsangmeister
Copy link
Contributor

jsangmeister commented Jan 18, 2024

Two new fields should be added to motions: an editor and a working group speaker. Both can be (de-)activated in the settings.

Proposal for models.yml changes:

meeting:
  ...
  motions_enable_editor:
    type: boolean
    restriction_mode: B
  motions_enable_working_group_speaker:
    type: boolean
    restriction_mode: B

motion:
  ...
  editor_id:
    type: relation
    to: meeting_user/editor_for_motion_ids
    equal_fields: meeting_id
    restriction_mode: B
  working_group_speaker_id:
    type: relation
    to: meeting_user/working_group_speaker_for_motion_ids
    equal_fields: meeting_id
    restriction_mode: B

The restriction mode B is new for motions. Only users with motion.can_manage should be able to see fields with this restriction mode.

The actions motion.update and meeting.update must be updated accordingly to include the new fields. The motion fields can only be updated with motion.can_manage, the meeting fields analogously to all other settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant