Browse Source

[Update] 日志审计中改密日志权限 (#2108)

* [Update] 日志审计中改密日志权限

* [Update] 日志审计中改密日志权限
pull/2111/head^2
老广 6 years ago committed by GitHub
parent
commit
0b0fdbfc82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/audits/views.py

5
apps/audits/views.py

@ -122,7 +122,10 @@ class PasswordChangeLogList(AdminUserRequiredMixin, DatetimeSearchMixin, ListVie
date_from = date_to = None
def get_queryset(self):
self.queryset = super().get_queryset()
users = current_org.get_org_users()
self.queryset = super().get_queryset().filter(
user__in=[user.__str__() for user in users]
)
self.user = self.request.GET.get('user')
filter_kwargs = dict()

Loading…
Cancel
Save