Checks for current_user when getting todo
This commit is contained in:
parent
b56965c5bb
commit
7c95dc41ef
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue