Commit 4d522c12 by Kálmán Viktor

dashboard: oups

parent b2eb2f5a
...@@ -1614,7 +1614,7 @@ class VmList(LoginRequiredMixin, FilterMixin, ListView): ...@@ -1614,7 +1614,7 @@ class VmList(LoginRequiredMixin, FilterMixin, ListView):
stype = cleaned_data.get('stype', "all") stype = cleaned_data.get('stype', "all")
superuser = stype == "all" superuser = stype == "all"
shared = stype == "shared" shared = stype == "shared"
level = "owner" if stype == 0 else "user" level = "owner" if stype == "owned" else "user"
queryset = Instance.get_objects_with_level( queryset = Instance.get_objects_with_level(
level, self.request.user, level, self.request.user,
group_also=shared, disregard_superuser=not superuser, group_also=shared, disregard_superuser=not superuser,
......
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 sign in to comment