Skip to content
Snippets Groups Projects
Commit fdb6a496 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

get the permissions from analysis permission endpoint

parent 68e62b13
Branches
Tags
1 merge request!97fetch list analysis in fetch hook in order to not block page display while...
Pipeline #78447 passed
......@@ -78,10 +78,17 @@ export default {
}
},
computed: {
permissionsSet() {
return new Set(this.permissions)
},
addAnalysisRoute() {
return {
name: 'projects-id-analysis-add',
params: this.$route.params,
if (this.permissionsSet.has('add')) {
return {
name: 'projects-id-analysis-add',
params: this.$route.params,
}
} else {
return null
}
},
sanitizedAnalysis() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment