Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
bebffe49
Commit
bebffe49
authored
Oct 09, 2023
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not enforce GQL policies for all routes
parent
3d165992
Pipeline
#5218
passed with stages
in 77 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Node.hs
src/Gargantext/API/GraphQL/Node.hs
+3
-1
TreeFirstLevel.hs
src/Gargantext/API/GraphQL/TreeFirstLevel.hs
+3
-1
No files found.
src/Gargantext/API/GraphQL/Node.hs
View file @
bebffe49
...
...
@@ -56,7 +56,9 @@ resolveNodes
->
NodeArgs
->
GqlM
e
env
[
Node
]
resolveNodes
autUser
mgr
NodeArgs
{
node_id
}
=
withPolicy
autUser
mgr
(
nodeChecks
(
NodeId
node_id
))
$
dbNodes
node_id
-- FIXME(adn) We should have a way to enforce the access policy on
-- the public or public folders, instead of using 'alwaysAllow'.
withPolicy
autUser
mgr
alwaysAllow
$
dbNodes
node_id
resolveNodesCorpus
::
(
CmdCommon
env
)
...
...
src/Gargantext/API/GraphQL/TreeFirstLevel.hs
View file @
bebffe49
...
...
@@ -60,7 +60,9 @@ resolveTree :: (CmdCommon env)
->
TreeArgs
->
GqlM
e
env
(
TreeFirstLevel
(
GqlM
e
env
))
resolveTree
autUser
mgr
TreeArgs
{
root_id
}
=
withPolicy
autUser
mgr
(
nodeChecks
(
NodeId
root_id
))
$
dbTree
root_id
-- FIXME(adn) We should have a way to enforce the access policy on
-- the public or public folders, instead of using 'alwaysAllow'.
withPolicy
autUser
mgr
alwaysAllow
$
dbTree
root_id
dbTree
::
(
CmdCommon
env
)
=>
Int
->
GqlM
e
env
(
TreeFirstLevel
(
GqlM
e
env
))
...
...
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