perf: 增加分享权限位

This commit is contained in:
Eric
2023-11-08 17:46:32 +08:00
committed by Eric_Lee
parent 5ab8ff4fde
commit 3eb1583c69
3 changed files with 29 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ class ActionChoices(BitChoices):
copy = bit(4), _("Copy") + " (RDP, VNC)"
paste = bit(5), _("Paste") + " (RDP, VNC)"
delete = bit(6), _("Delete") + " (SFTP)"
share = bit(7), _("Share") + " (SSH)"
@classmethod
def is_tree(cls):
@@ -26,6 +27,7 @@ class ActionChoices(BitChoices):
cls.connect,
(_("Transfer"), [cls.upload, cls.download, cls.delete]),
(_("Clipboard"), [cls.copy, cls.paste]),
cls.share
)
@classmethod