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)
can(self, collection, action)

Query permissions to see if the user can perform the specified action on the given collection.

can_read(self, collection)

Check if a given collection can be read.

can_write(self, collection)

Check if a given collection can be written.

check_roles(self, roles)