mirror of https://github.com/jumpserver/jumpserver
Merge pull request #9666 from jumpserver/pr@dev@fix_rdp_download
fix: rdp file downloadpull/9673/head
commit
0d8e0bd1cc
|
@ -36,8 +36,7 @@ class ActionChoices(BitChoices):
|
|||
return cls.copy | cls.paste
|
||||
|
||||
@classmethod
|
||||
def contains(cls, total, action):
|
||||
action_value = getattr(cls, action)
|
||||
def contains(cls, total, action_value):
|
||||
return action_value & total == action_value
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in New Issue