lib/dradis/plugins/content_service/notes.rb in dradis-plugins-3.9.0 vs lib/dradis/plugins/content_service/notes.rb in dradis-plugins-3.10.0
- old
+ new
@@ -1,10 +1,10 @@
module Dradis::Plugins::ContentService
module Notes
extend ActiveSupport::Concern
def all_notes
- Note.where(category: Category.report)
+ project.notes.where(category: Category.report)
end
def create_note(args={})
cat = args.fetch(:category, default_note_category)
node = args.fetch(:node, default_node_parent)