Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5d94a221
Commit
5d94a221
authored
Jan 31, 2022
by
Fernando Arias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix corpus management user permissions
* Change Boolean to parseBoolean utility function
parent
d2f57e9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ee/app/assets/javascripts/security_configuration/corpus_management/corpus_management_bundle.js
...nfiguration/corpus_management/corpus_management_bundle.js
+4
-3
No files found.
ee/app/assets/javascripts/security_configuration/corpus_management/corpus_management_bundle.js
View file @
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
:
parse
Boolean
(
canUploadCorpus
),
canReadCorpus
:
parse
Boolean
(
canReadCorpus
),
canDestroyCorpus
:
parse
Boolean
(
canDestroyCorpus
),
};
return
new
Vue
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment