diff --git a/app/models/bulk_update_request.rb b/app/models/bulk_update_request.rb index dbed01292..a4132e48e 100644 --- a/app/models/bulk_update_request.rb +++ b/app/models/bulk_update_request.rb @@ -121,21 +121,17 @@ class BulkUpdateRequest < ActiveRecord::Base def update_forum_topic_for_approve if forum_topic - CurrentUser.scoped(User.admins.first, "127.0.0.1") do - forum_topic.posts.create( - :body => "The bulk update request ##{id} has been approved." - ) - end + forum_topic.posts.create( + :body => "The bulk update request ##{id} has been approved." + ) end end def update_forum_topic_for_reject if forum_topic - CurrentUser.scoped(User.admins.first, "127.0.0.1") do - forum_topic.posts.create( - :body => "The bulk update request ##{id} has been rejected." - ) - end + forum_topic.posts.create( + :body => "The bulk update request ##{id} has been rejected." + ) end end diff --git a/app/models/tag_alias.rb b/app/models/tag_alias.rb index 0a96f8cef..cc9f8f424 100644 --- a/app/models/tag_alias.rb +++ b/app/models/tag_alias.rb @@ -235,21 +235,17 @@ class TagAlias < ActiveRecord::Base def update_forum_topic_for_approve if forum_topic - CurrentUser.scoped(User.admins.first, "127.0.0.1") do - forum_topic.posts.create( - :body => "The tag alias #{antecedent_name} -> #{consequent_name} has been approved." - ) - end + forum_topic.posts.create( + :body => "The tag alias #{antecedent_name} -> #{consequent_name} has been approved." + ) end end def update_forum_topic_for_reject if forum_topic - CurrentUser.scoped(User.admins.first, "127.0.0.1") do - forum_topic.posts.create( - :body => "The tag alias #{antecedent_name} -> #{consequent_name} has been rejected." - ) - end + forum_topic.posts.create( + :body => "The tag alias #{antecedent_name} -> #{consequent_name} has been rejected." + ) end end diff --git a/app/models/tag_implication.rb b/app/models/tag_implication.rb index 534b09763..f514c158e 100644 --- a/app/models/tag_implication.rb +++ b/app/models/tag_implication.rb @@ -218,21 +218,17 @@ class TagImplication < ActiveRecord::Base def update_forum_topic_for_approve if forum_topic - CurrentUser.scoped(User.admins.first, "127.0.0.1") do - forum_topic.posts.create( - :body => "The tag implication #{antecedent_name} -> #{consequent_name} has been approved." - ) - end + forum_topic.posts.create( + :body => "The tag implication #{antecedent_name} -> #{consequent_name} has been approved." + ) end end def update_forum_topic_for_reject if forum_topic - CurrentUser.scoped(User.admins.first, "127.0.0.1") do - forum_topic.posts.create( - :body => "The tag implication #{antecedent_name} -> #{consequent_name} has been rejected." - ) - end + forum_topic.posts.create( + :body => "The tag implication #{antecedent_name} -> #{consequent_name} has been rejected." + ) end end