extensions-website/constants/version_permissions.py
Dalai Felinto cb4e29ecf3 Manifest: New field "permission"
Support the following permissions:
* 'files'
* 'network'

The Front-End implementation of permissions is planned as a separate
task (by the Front-End team ;).
2024-02-18 15:04:23 +01:00

24 lines
479 B
Python

"""Lists permissions allowed for add-ons."""
from django.utils.translation import gettext_lazy as _
class VERSION_PERMISSION_FILE:
id = 1
name = _('File')
slug = 'file'
help = 'Add-on expects to have access to filesytem.'
class VERSION_PERMISSION_NETWORK:
id = 2
name = _('Network')
slug = 'network'
help = 'Add-on expects to have internet access.'
ALL_VERSION_PERMISSIONS = (
VERSION_PERMISSION_FILE,
VERSION_PERMISSION_NETWORK,
)