Commit 2c87f56a by Őry Máté

dashboard: filter vm-list by acl level

parent 57f8b042
......@@ -411,9 +411,15 @@ class TemplateList(LoginRequiredMixin, SingleTableView):
class VmList(LoginRequiredMixin, SingleTableView):
template_name = "dashboard/vm-list.html"
queryset = Instance.active.all()
table_class = VmListTable
table_pagination = False
model = Instance
def get_queryset(self):
logger.debug('VmList.get_queryset() claled. User: %s',
unicode(self.request.user))
return Instance.get_objects_with_level(
'user', self.request.user).filter(destroyed=None).all()
class NodeList(LoginRequiredMixin, SuperuserRequiredMixin, SingleTableView):
......
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