Commit d53fb4f1 authored by Mike Greiling's avatar Mike Greiling

Merge branch 'dmishunov-js-error-anon-view-snippet' into 'master'

Fixed JS error on snippet for anonymous views

See merge request gitlab-org/gitlab!29854
parents fbff421c 01f06471
......@@ -43,7 +43,7 @@ export default {
update(data) {
return this.snippet.project
? data.project.userPermissions.createSnippet
: data.currentUser.userPermissions.createSnippet;
: data.currentUser?.userPermissions.createSnippet;
},
},
},
......
---
title: Fixed JS error for anonymous views of a snippet
merge_request: 29854
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment