Files
danbooru/app/models
evazion 0006b76c4d Always obey rating locks; make rerating locked posts an error.
Currently rating locks are only obeyed when using the rating: metatag.
They aren't obeyed when:

* Changing the rating via the API.
* Changing the rating via 'Rate Safe' in the mode menu (uses the API).
* Reverting to previous versions.

Also, the current behavior is to ignore the rating: metatag if the post
is locked. This patch instead makes the update fail completely (note that
this could affect trying to mass revert posts that may be rating locked).

Note: the check for `!is_rating_locked_changed?` is so that

  PUT /posts/1.json?post[rating]=s&post[is_rating_locked]=true

works (ie., locking and changing the rating at the same time is okay).
2016-10-19 20:06:43 -05:00
..
2014-04-16 17:43:34 -07:00
2014-04-16 17:43:34 -07:00
2015-12-28 12:26:20 -08:00
2016-09-19 16:47:55 -07:00
2014-07-23 15:15:47 -07:00
2016-06-15 12:42:31 -07:00
2016-02-22 14:11:25 -08:00
2015-10-15 15:24:24 -07:00
2016-09-17 16:42:00 +05:00
2016-02-22 17:02:15 -08:00
2015-08-18 17:40:53 -07:00
2014-04-16 17:43:34 -07:00
2015-10-19 14:33:06 -07:00
2014-04-16 17:43:34 -07:00
2014-06-17 15:51:18 -04:00
2014-04-16 17:43:34 -07:00
2014-04-16 17:43:34 -07:00
2015-11-16 10:25:33 -05:00
2016-09-25 14:56:19 -07:00
2016-09-29 11:54:17 -07:00
2016-09-28 11:25:29 -07:00
2014-04-16 17:43:34 -07:00
2015-08-18 17:40:53 -07:00
2016-10-19 13:00:36 -07:00