This is a plugin to use with the quetz package server.
It checks if a user has signed terms of services document or not. An owner need not sign the TOS.
However, maintainer or members need to sign terms of services to make sure they have the relevant access
to their resources. In case of not signing, their permissions will be restricted -- for eg: they might not be able to upload a package to a channel even if their status permits them to.
To install use:
pip install .
GET /api/tosendpoint is used to get information about latest terms of service documentPOST /api/tos/signendpoint is used to sign a particular (or latest) terms of service documentPOST /api/tos/uploadendpoint is used to upload a terms of service document. Onlyownerscan do it.