Когда модераторы категорий используют панель ревью и сталкиваются с отредактированной темой/сообщением, нажатие на кнопку «История редактирования» приводит к появлению диалогового окна с ошибкой «invalid_access».
Этот коммит позволяет модераторам категорий просматривать историю редактирования в тех категориях, которые они модерируют, тем самым решая данную проблему, а также обновляет описание настройки edit_history_visible_to_public в соответствии с этим изменением.
main ← small-lovely-cat:fix-edit-history
closed 02:15AM - 28 Apr 26 UTC
When category moderators use review panel and encounters an edited topic/post, t… he clicking on the edit-history button will result in a dialog showing invalid_access.
<img width="690" height="143" alt="image" src="https://github.com/user-attachments/assets/4dda617b-6672-4b0c-a4fa-121a66a05308" />
<img width="694" height="247" alt="image" src="https://github.com/user-attachments/assets/4478b9c5-3766-4745-974a-73934e23b0dc" />
This commit allows category moderators to view the edit-history in the certain category they moderate, so as to solve this problem, as well as changing the description for the setting `edit_history_visible_to_public` to match this change.
3 лайка
Похоже, что это ограничение. Возможно, это необходимо для управления модераторами категорий. Есть ли у вас какие-либо идеи по этому поводу?
2 лайка
chapoi
21.Июль.2026 08:54:07
3
@sam Я видел, что ты изначально уже комментировал этот PR, можем ли мы его снова открыть и всё-таки слить?
2 лайка
Похоже, у zog есть более завершённая версия, но она тоже закрыта, так что не уверен.
Возможно, её лучше было бы слить.
main ← fix-edit-history-category-moderators
opened 08:36AM - 17 Feb 26 UTC
## Summary
- When `edit_history_visible_to_public` is disabled, category group … moderators using the review panel get an `invalid_access` error when viewing edit history for posts in their moderated categories
- Allows category group moderators to view edit history for posts in categories they moderate
- Updates the `edit_history_visible_to_public` setting description to reflect this change
- Adds guardian specs plus request specs verifying category group moderators can only view revisions in their moderated categories, and that hidden revisions remain staff-only (both on the revisions endpoints and the `?version=` post endpoint)
Based on #37025 by @small-lovely-cat.
chapoi
21.Июль.2026 12:30:48
5
О, интересно, тогда вызываю @zogstrip за более подробной информацией
1 лайк
Приношу извинения. Этот вопрос упал в трещины, потому что была проблема безопасности, затрагивающая тот же путь кода, и я не хотел создавать лишний шум в процессе. Я повторно открыл PR и обновил его.
main ← fix-edit-history-category-moderators
opened 08:36AM - 17 Feb 26 UTC
## Summary
- When `edit_history_visible_to_public` is disabled, category group … moderators using the review panel get an `invalid_access` error when viewing edit history for posts in their moderated categories
- Allows category group moderators to view edit history for posts in categories they moderate
- Updates the `edit_history_visible_to_public` setting description to reflect this change
- Adds guardian specs plus request specs verifying category group moderators can only view revisions in their moderated categories, and that hidden revisions remain staff-only (both on the revisions endpoints and the `?version=` post endpoint)
Based on #37025 by @small-lovely-cat.
Сливу, как только будет и будет просмотрен .
2 лайка