Who may query a collection once every collection above it is taken into account: what CollectionStore.effectiveAccess returns, and the rule CollectionStore.canQuery and CollectionStore.findAccessible apply.
A collection is queryable by a non-admin user only if, at every restricted level from the root down to the collection itself, the user holds at least one of that level's principals. The principal may differ from level to level: with company queryable by employees and company/executive by managers, a user in both groups may query company/executive, and a user in only one may not. An admin may query every collection.
Unlike the deprecated CollectionStore.getEffectivePermissions, an empty answer never means public: "anyone" is EffectiveAccess.Public, "these principals at these levels" is EffectiveAccess.Restricted, and "no non-admin user" is EffectiveAccess.Nobody.
Attributes
- Companion
- object
- Source
- EffectiveAccess.scala
- Graph
-
- Supertypes
- Known subtypes
