Commit 2c0ff8d8 by Bach Dániel

dashboard: add acl support for IndexView

parent fa1e0e22
...@@ -60,7 +60,9 @@ class IndexView(LoginRequiredMixin, TemplateView): ...@@ -60,7 +60,9 @@ class IndexView(LoginRequiredMixin, TemplateView):
else: else:
user = None user = None
instances = Instance.active.filter(owner=user) instances = Instance.get_objects_with_level(
'user', user).filter(destroyed=None)
context = super(IndexView, self).get_context_data(**kwargs) context = super(IndexView, self).get_context_data(**kwargs)
context.update({ context.update({
'instances': instances[:5], 'instances': instances[:5],
......
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