Commit 7c95dc41 authored by Phil Hughes's avatar Phil Hughes

Checks for current_user when getting todo

parent b56965c5
......@@ -68,7 +68,7 @@ module IssuablesHelper
end
def issuable_todo(issuable)
if issuable
if current_user
current_user.todos.find_by(target: issuable, state: :pending)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment