users: remove no_flagging and no_feedback permissions.

This commit is contained in:
evazion
2019-12-24 10:24:15 -06:00
parent 939c168fe9
commit 7694be9cb3
8 changed files with 5 additions and 82 deletions

View File

@@ -122,10 +122,6 @@ class PostFlag < ApplicationRecord
def validate_creator_is_not_limited
return if is_deletion
if creator.no_flagging?
errors[:creator] << "cannot flag posts"
end
if creator_id != User.system.id && creator.post_flags.where("created_at > ?", 30.days.ago).count >= CREATION_THRESHOLD
report = Reports::PostFlags.new(user_id: post.uploader_id, date_range: 90.days.ago)