disable check for approved bulk update requests
This commit is contained in:
@@ -15,15 +15,9 @@ module BulkUpdateRequestsHelper
|
|||||||
when :remove_implication
|
when :remove_implication
|
||||||
TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagImplication.where(antecedent_name: antecedent, consequent_name: consequent).exists?
|
TagImplication.where(antecedent_name: antecedent, consequent_name: consequent, status: "deleted").exists? || !TagImplication.where(antecedent_name: antecedent, consequent_name: consequent).exists?
|
||||||
|
|
||||||
when :mass_update
|
|
||||||
!Post.raw_tag_match(antecedent).exists?
|
|
||||||
|
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue ActiveRecord::StatementInvalid
|
|
||||||
false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def failed?(command, antecedent, consequent)
|
def failed?(command, antecedent, consequent)
|
||||||
|
|||||||
Reference in New Issue
Block a user