Skip to content

Commit

Permalink
Fix mismatch of perm check of get-forwarding-meetings permissions and…
Browse files Browse the repository at this point in the history
… error message(#2707)
  • Loading branch information
reiterl authored Oct 30, 2024
1 parent 0ff540a commit d4eac2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openslides_backend/presenter/get_forwarding_meetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_result(self) -> Any:
self.data["meeting_id"],
):
msg = "You are not allowed to perform presenter get_forwarding_meetings"
msg += f" Missing permission: {Permissions.Motion.CAN_MANAGE}"
msg += f" Missing permission: {Permissions.Motion.CAN_FORWARD}"
raise PermissionDenied(msg)

meeting = self.datastore.get(
Expand Down
2 changes: 1 addition & 1 deletion tests/system/presenter/test_get_forwarding_meetings.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,4 @@ def test_with_locked_meeting(self) -> None:
)
status_code, data = self.request("get_forwarding_meetings", {"meeting_id": 3})
assert status_code == 403
assert "Missing permission: motion.can_manage" in data["message"]
assert "Missing permission: motion.can_forward" in data["message"]

0 comments on commit d4eac2a

Please sign in to comment.