Skip to content

Commit

Permalink
Merge pull request #47 from isururanawaka/sharing_service_impl
Browse files Browse the repository at this point in the history
Fixing permisison issue in metadata search
  • Loading branch information
isururanawaka committed Sep 1, 2021
2 parents 7e2f3c0 + 8660920 commit 06ba587
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -841,7 +841,7 @@ private boolean hasAccessForResource(String username, String tenantId, String re
" OPTIONAL MATCH (cg:Group)-[:CHILD_OF*]->(g:Group)<-[:MEMBER_OF]-(u)" +
" OPTIONAL MATCH (l)<-[:CHILD_OF*]-(r)"+
" return case when exists((u)<-[:SHARED_WITH]-(r)) OR exists((u)<-[:SHARED_WITH]-(l)) OR exists((g)<-[:SHARED_WITH]-(r)) OR " +
" exists((g)<-[:SHARED_WITH]-(l)) OR exists((cg)<-[:SHARED_WITH]-(r) OR exists((cg)<-[:SHARED_WITH]-(l)) then r else NULL end as value";
" exists((g)<-[:SHARED_WITH]-(l)) OR exists((cg)<-[:SHARED_WITH]-(r)) OR exists((cg)<-[:SHARED_WITH]-(l)) then r else NULL end as value";

List<Record> records = this.neo4JConnector.searchNodes(userProps, query);

Expand Down

0 comments on commit 06ba587

Please sign in to comment.