Commit 4ac0536c authored by Peter Hegman's avatar Peter Hegman

Merge branch '351539-corpus-management-permission' into 'master'

Fix corpus management user permissions

See merge request gitlab-org/gitlab!79505
parents 2e02f5da 5d94a221
......@@ -2,6 +2,7 @@ import { defaultDataIdFromObject } from 'apollo-cache-inmemory';
import Vue from 'vue';
import VueApollo from 'vue-apollo';
import createDefaultClient from '~/lib/graphql';
import { parseBoolean } from '~/lib/utils/common_utils';
import CorpusManagement from './components/corpus_management.vue';
import resolvers from './graphql/resolvers/resolvers';
......@@ -36,9 +37,9 @@ export default () => {
const provide = {
projectFullPath,
corpusHelpPath,
canUploadCorpus: Boolean(canUploadCorpus),
canReadCorpus: Boolean(canReadCorpus),
canDestroyCorpus: Boolean(canDestroyCorpus),
canUploadCorpus: parseBoolean(canUploadCorpus),
canReadCorpus: parseBoolean(canReadCorpus),
canDestroyCorpus: parseBoolean(canDestroyCorpus),
};
return new Vue({
......
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