From 3f9f3f32907a633af693f0645316212c385f7d42 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 21 Feb 2023 17:39:33 +0800 Subject: [PATCH] fix: rdp file download --- apps/perms/const.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/perms/const.py b/apps/perms/const.py index 690fb2742..21fe2d763 100644 --- a/apps/perms/const.py +++ b/apps/perms/const.py @@ -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