mirror of https://github.com/jumpserver/jumpserver
fix: 修改 actions bit 从1开始
parent
d554e92d02
commit
83ef013708
|
@ -10,11 +10,11 @@ __all__ = ["SpecialAccount", "ActionChoices"]
|
||||||
|
|
||||||
|
|
||||||
class ActionChoices(BitChoices):
|
class ActionChoices(BitChoices):
|
||||||
connect = bit(0), _("Connect")
|
connect = bit(1), _("Connect")
|
||||||
upload = bit(1), _("Upload")
|
upload = bit(2), _("Upload")
|
||||||
download = bit(2), _("Download")
|
download = bit(3), _("Download")
|
||||||
copy = bit(3), _("Copy")
|
copy = bit(4), _("Copy")
|
||||||
paste = bit(4), _("Paste")
|
paste = bit(5), _("Paste")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def is_tree(cls):
|
def is_tree(cls):
|
||||||
|
|
Loading…
Reference in New Issue