fixed bug with can? check when user is not logged in
This commit is contained in:
parent
a9470c45e4
commit
fd3750c685
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue