Commit 5d94a221 authored by Fernando Arias's avatar Fernando Arias

Fix corpus management user permissions

* Change Boolean to parseBoolean utility function
parent d2f57e9a
......@@ -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