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

Allow submitter ids and additional submitter on motion create #2766

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hjanott
Copy link
Member

@hjanott hjanott commented Dec 12, 2024

Closes #2760

@hjanott hjanott added the bug label Dec 12, 2024
@hjanott hjanott added this to the 4.2 milestone Dec 12, 2024
@hjanott hjanott requested a review from reiterl December 12, 2024 15:49
@hjanott hjanott assigned hjanott and reiterl and unassigned hjanott Dec 12, 2024
Copy link
Member

@reiterl reiterl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing tests for motion.create and motion can manage metadata with enabled setting.

Comment on lines 162 to 164
for perm, fields in permission_to_fields.items():
if has_perm(self.datastore, self.user_id, perm, instance["meeting_id"]):
whitelist.extend(fields)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You put submitter_ids on the whitelist, even when not UserCanSee, that is a problem.

@reiterl reiterl assigned hjanott and unassigned reiterl Dec 13, 2024
@Elblinator Elblinator modified the milestones: 4.2, 4.3 Dec 13, 2024
@hjanott hjanott assigned reiterl and unassigned hjanott Dec 13, 2024
@hjanott hjanott requested a review from reiterl December 13, 2024 14:57
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 this pull request may close these issues.

Fix motion.create with only permission 'motion.can_change_meta'
3 participants