Commit 57c9bc6b by Oláh István Gergely

dashboard: add has_level to removeuser in view

parent 67121f2f
...@@ -968,6 +968,9 @@ class GroupRemoveUserView(CheckedDetailView, DeleteView): ...@@ -968,6 +968,9 @@ class GroupRemoveUserView(CheckedDetailView, DeleteView):
slug_url_kwarg = 'group_pk' slug_url_kwarg = 'group_pk'
read_level = 'operator' read_level = 'operator'
def get_has_level(self):
return self.object.profile.has_level
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(GroupRemoveUserView, self).get_context_data(**kwargs) context = super(GroupRemoveUserView, self).get_context_data(**kwargs)
try: try:
......
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