Unverified Commit 9fa6b3e3 authored by 老广's avatar 老广 Committed by GitHub

[Update] 暂时隐藏rdp的session,等待windows录像播放 (#1276) (#1278)

parent d7a32120
...@@ -47,7 +47,8 @@ class SessionListView(AdminUserRequiredMixin, DatetimeSearchMixin, ListView): ...@@ -47,7 +47,8 @@ class SessionListView(AdminUserRequiredMixin, DatetimeSearchMixin, ListView):
filter_kwargs['system_user'] = self.system_user filter_kwargs['system_user'] = self.system_user
if filter_kwargs: if filter_kwargs:
self.queryset = self.queryset.filter(**filter_kwargs) self.queryset = self.queryset.filter(**filter_kwargs)
return self.queryset # Todo: 暂时隐藏rdp
return self.queryset.filter(protocol='ssh')
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = { context = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment