提交 7c95dc41 编写于 作者: P Phil Hughes

Checks for current_user when getting todo

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册