feat: 协作分享增加读写控制

This commit is contained in:
Eric
2023-04-03 13:55:27 +08:00
committed by Jiangjie.Bai
parent 4c5e47cb99
commit 789eb0cf36
4 changed files with 47 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
from django.db.models import TextChoices
from django.db.models import TextChoices, IntegerChoices
from django.utils.translation import ugettext_lazy as _
@@ -65,3 +65,8 @@ class SessionType(TextChoices):
normal = 'normal', _('Normal')
tunnel = 'tunnel', _('Tunnel')
command = 'command', _('Command')
class ActionPermission(IntegerChoices):
read_only = 0, _('Read Only')
writable = 1, _('Writable')