Skip to content
Snippets Groups Projects
Commit 7c95dc41 authored by Phil Hughes's avatar Phil Hughes
Browse files

Checks for current_user when getting todo

parent b56965c5
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
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