mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-18 22:28:28 +00:00
fix: Fixed ACLs Asset connect select attribute assets while both include labels not matched.
This commit is contained in:
parent
42c3008ec9
commit
7c4c0b5924
@ -57,7 +57,7 @@ class LabeledMixin(models.Model):
|
|||||||
resources = resources.filter(label_id__in=label_ids) \
|
resources = resources.filter(label_id__in=label_ids) \
|
||||||
.values('res_id') \
|
.values('res_id') \
|
||||||
.order_by('res_id') \
|
.order_by('res_id') \
|
||||||
.annotate(count=Count('res_id', distinct=True)) \
|
.annotate(count=Count('res_id')) \
|
||||||
.values('res_id', 'count') \
|
.values('res_id', 'count') \
|
||||||
.filter(count=len(label_ids))
|
.filter(count=len(label_ids))
|
||||||
return resources
|
return resources
|
||||||
|
Loading…
Reference in New Issue
Block a user