check if an organization is present when creating a reaction (#5264) [deploy]
This commit is contained in:
parent
11689929ef
commit
c9fea65ed8
1 changed files with 1 additions and 1 deletions
|
|
@ -78,6 +78,6 @@ class ReactionsController < ApplicationController
|
|||
private
|
||||
|
||||
def organization_article?(reaction)
|
||||
reaction.reactable_type == "Article" && reaction.reactable.organization_id
|
||||
reaction.reactable_type == "Article" && reaction.reactable.organization.present?
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue