mirror of https://github.com/jumpserver/jumpserver
修复全局组织仪表盘用户总数统计
parent
53e3fa2590
commit
73f2022ff6
|
@ -79,7 +79,7 @@ class OrgResourceStatisticsCache(OrgRelatedCache):
|
|||
|
||||
def compute_users_amount(self):
|
||||
if self.org.is_root():
|
||||
users_amount = User.objects.exclude(role='APP').count()
|
||||
users_amount = User.objects.exclude(role='App').count()
|
||||
else:
|
||||
users_amount = OrganizationMember.objects.values(
|
||||
'user_id'
|
||||
|
|
Loading…
Reference in New Issue