diff options
author | Jarka Kadlecová <jarka@gitlab.com> | 2018-07-03 09:48:00 +0300 |
---|---|---|
committer | Jarka Kadlecová <jarka@gitlab.com> | 2018-07-03 10:34:44 +0300 |
commit | c9d561b1c2802aa971b566d434dfffa101129e52 (patch) | |
tree | d58693e077fab231463f344820601c7667bbe310 /app/services/todo_service.rb | |
parent | da841106a965a6cfb8c94df6704e6d23a2de67e5 (diff) |
Use for_issuable? instead of for_issuable_with_ability?
Diffstat (limited to 'app/services/todo_service.rb')
-rw-r--r-- | app/services/todo_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/todo_service.rb b/app/services/todo_service.rb index 4a7e89a63c7..46f12086555 100644 --- a/app/services/todo_service.rb +++ b/app/services/todo_service.rb @@ -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 |