aleph.authz

aleph.authz.get_public_roles()

Roles which make a collection to be considered public.

Authz

class aleph.authz.Authz

Imports

  • object

Summary

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.

__init__(self)
__repr__(self)
_collection_check(self, collection, action)
check_roles(self, roles)
collection_public(self, collection)
collection_read(self, collection)

Check if a given collection can be read.

collection_write(self, collection)

Check if a given collection can be written.

collections_intersect(self, action, colls)

Intersect the given and the available set of collections.

This will return all available collections if the given set is empty and the default_all argument is True.

require(self, pred)
session_write(self)