@@ -271,6 +271,26 @@ public AqlQueryOptions satelliteSyncWait(final Double satelliteSyncWait) {
271271 return this ;
272272 }
273273
274+ public Boolean getSkipInaccessibleCollections () {
275+ return options != null ? options .skipInaccessibleCollections : null ;
276+ }
277+
278+ /**
279+ * @param skipInaccessibleCollections
280+ * AQL queries (especially graph traversals) will treat collection to which a user has no access rights
281+ * as if these collections were empty. Instead of returning a forbidden access error, your queries will
282+ * execute normally. This is intended to help with certain use-cases: A graph contains several
283+ * collections and different users execute AQL queries on that graph. You can now naturally limit the
284+ * accessible results by changing the access rights of users on collections. This feature is only
285+ * available in the Enterprise Edition.
286+ * @since ArangoDB 3.2.0
287+ * @return options
288+ */
289+ public AqlQueryOptions skipInaccessibleCollections (final Boolean skipInaccessibleCollections ) {
290+ getOptions ().skipInaccessibleCollections = skipInaccessibleCollections ;
291+ return this ;
292+ }
293+
274294 public Boolean getFullCount () {
275295 return options != null ? options .fullCount : null ;
276296 }
@@ -340,6 +360,7 @@ private static class Options {
340360 private Long intermediateCommitCount ;
341361 private Long intermediateCommitSize ;
342362 private Double satelliteSyncWait ;
363+ private Boolean skipInaccessibleCollections ;
343364 private Optimizer optimizer ;
344365 private Boolean fullCount ;
345366 private Integer maxPlans ;
0 commit comments