Skip to content

Commit c75f674

Browse files
authored
Merge pull request #1631 from SynBioHub/updateFrom
changed from check for queries for shares
2 parents c6b64f4 + 0262dc3 commit c75f674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checkSparqlQuery.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function checkQuery (query, user, baseUri) {
4343
function checkFromNode (from) {
4444
function equalsUserOrPublicGraph (graph) {
4545
return graph === userGraph ||
46-
graph === config.get('triplestore').defaultGraph
46+
graph === config.get('triplestore').defaultGraph || baseUri.startsWith(graph)
4747
}
4848

4949
if (from && !(from.default.every(equalsUserOrPublicGraph) &&

0 commit comments

Comments
 (0)