fixes #2876: Changing approver/contributor privileges should log mod action

This commit is contained in:
r888888888
2017-02-14 12:46:54 -08:00
parent ed8a8001f4
commit aa41c41572
3 changed files with 15 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ class UserPresenter
if !SavedSearch.enabled?
return Post.where("false")
end
ids = SavedSearch.post_ids(CurrentUser.user.id, category)
if ids.any?
@@ -81,7 +81,7 @@ class UserPresenter
if user.can_upload_free?
return "none"
end
dcon = [user.deletion_confidence(60), 15].min
multiplier = (1 - (dcon / 15.0))
max_count = [(user.base_upload_limit * multiplier).ceil, 5].max