Martin Brennan eeaecd4fd2
FEATURE: Category setting to allow unlimited first post edits by the owner of the topic (#12690)
This PR adds a new category setting which is a column in the `categories` table, `allow_unlimited_owner_edits_on_first_post`.

What this does is:

* Inside the `can_edit_post?` method of `PostGuardian`, if the current user editing a post is the owner of the post, it is the first post, and the topic's category has `allow_unlimited_owner_edits_on_first_post`, then we bypass the check for `LimitedEdit#edit_time_limit_expired?` on that post.
* Also, similar to wiki topics, in `PostActionNotifier#after_create_post_revision` we send a notification to all users watching a topic when the OP is edited in a topic with the category setting `allow_unlimited_owner_edits_on_first_post` enabled.

This is useful for forums where there is a Marketplace or similar category, where topics are created and then updated indefinitely by the OP rather than the OP making new topics or additional replies. In a way this acts similar to a wiki that only one person can edit.
2021-04-14 15:54:09 +10:00
..
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-02-09 14:56:15 +01:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-03-30 15:44:13 +02:00
2021-03-16 15:49:29 +01:00
2021-03-09 15:19:02 +01:00
2021-03-09 15:19:02 +01:00
2021-04-07 11:58:41 +02:00
2021-03-09 15:19:02 +01:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-03-16 15:49:29 +01:00
2021-02-23 15:10:04 +01:00
2021-04-13 16:02:08 +02:00
2021-03-23 16:12:04 +01:00
2021-04-13 16:02:08 +02:00
2021-04-07 11:58:41 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-03-16 15:49:29 +01:00
2021-04-07 11:58:41 +02:00
2020-10-30 16:06:32 +01:00
2021-04-13 16:02:08 +02:00
2021-03-09 15:19:02 +01:00
2021-04-13 16:02:08 +02:00
2021-02-23 15:10:04 +01:00
2021-02-23 15:10:04 +01:00
2021-03-16 15:49:29 +01:00
2021-04-07 11:58:41 +02:00
2021-04-13 16:02:08 +02:00
2021-04-07 11:58:41 +02:00
2021-04-07 11:58:41 +02:00
2021-03-16 15:49:29 +01:00
2021-04-13 16:02:08 +02:00
2021-03-09 15:19:02 +01:00
2021-04-13 16:02:08 +02:00
2021-03-09 15:19:02 +01:00
2021-04-07 11:58:41 +02:00
2021-04-13 16:02:08 +02:00
2021-03-02 15:28:30 +01:00
2021-02-23 15:10:04 +01:00
2021-02-23 15:10:04 +01:00
2021-04-13 16:02:08 +02:00
2021-04-13 16:02:08 +02:00
2021-04-07 11:58:41 +02:00
2021-03-16 15:49:29 +01:00
2021-04-13 16:02:08 +02:00
2021-04-07 11:58:41 +02:00