mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-07 02:10:23 +00:00
perf: 增加分享权限位
This commit is contained in:
@@ -262,10 +262,8 @@ class BitChoices(models.IntegerChoices, TreeChoices):
|
||||
|
||||
@classmethod
|
||||
def all(cls):
|
||||
value = 0
|
||||
for c in cls:
|
||||
value |= c.value
|
||||
return value
|
||||
# 权限 12 位 最大值
|
||||
return 4095
|
||||
|
||||
|
||||
class PortRangeField(models.CharField):
|
||||
|
Reference in New Issue
Block a user