slycat.web.server.authentication¶
-
slycat.web.server.authentication.is_project_administrator(project)[source]¶ Return True if the current request is from a project administrator.
-
slycat.web.server.authentication.is_project_reader(project)[source]¶ Return True if the current request is from a project reader.
-
slycat.web.server.authentication.is_project_writer(project)[source]¶ Return True if the current request is from a project writer.
-
slycat.web.server.authentication.is_server_administrator()[source]¶ Return True if the current request is from a server administrator.
-
slycat.web.server.authentication.project_acl(project)[source]¶ Extract ACL information from a project.
-
slycat.web.server.authentication.require_project_administrator(project)[source]¶ Raise an exception if the current request doesn’t have project administrator privileges.
-
slycat.web.server.authentication.require_project_reader(project)[source]¶ Raise an exception if the current request doesn’t have project read privileges.
-
slycat.web.server.authentication.require_project_writer(project)[source]¶ Raise an exception if the current request doesn’t have project write privileges.
-
slycat.web.server.authentication.require_server_administrator()[source]¶ Raise an exception if the current request doesn’t have server administrator privileges.
-
slycat.web.server.authentication.test_project_administrator(project)[source]¶ Return True if the current request has project administrator privileges.
-
slycat.web.server.authentication.test_project_reader(project)[source]¶ Return True if the current request has project read privileges.