fixed bug with can? check when user is not logged in

This commit is contained in:
Phil Hughes 2017-05-24 12:56:05 +01:00
parent a9470c45e4
commit fd3750c685
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ module IssuablesHelper
endpoint: namespace_project_issue_path(@project.namespace, @project, issuable),
canUpdate: can?(current_user, :update_issue, issuable),
canDestroy: can?(current_user, :destroy_issue, issuable),
canMove: issuable.can_move?(current_user),
canMove: current_user ? issuable.can_move?(current_user) : false,
issuableRef: issuable.to_reference,
isConfidential: issuable.confidential,
markdownPreviewUrl: preview_markdown_path(@project),