Roles which make a collection to be considered public.
Hold the authorization information for a user.
This is usually attached to a request, but can also be used separately, e.g. in the context of notifications.
can(self, collection, action)¶
Query permissions to see if the user can perform the specified action on the given collection.
Check if a given collection can be read.
Check if a given collection can be written.