Dalai Felinto
cb4e29ecf3
Support the following permissions: * 'files' * 'network' The Front-End implementation of permissions is planned as a separate task (by the Front-End team ;).
24 lines
479 B
Python
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,
|
|
)
|