Skip to content
Snippets Groups Projects
Commit c9d561b1 authored by Jarka Kadlecova's avatar Jarka Kadlecova
Browse files

Use for_issuable? instead of for_issuable_with_ability?

parent da841106
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -229,7 +229,7 @@ class Note < ActiveRecord::Base
!for_personal_snippet?
end
 
def for_issuable_with_ability?
def for_issuable?
for_issue? || for_merge_request?
end
 
Loading
Loading
Loading
Loading
@@ -321,7 +321,7 @@ class TodoService
end
 
def reject_users_without_access(users, parent, target)
if target.is_a?(Note) && target.for_issuable_with_ability?
if target.is_a?(Note) && target.for_issuable?
target = target.noteable
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment