mirror of https://github.com/jumpserver/jumpserver
使终端管理的应用用户不显示在用户组里
parent
e4c2affb5f
commit
ec6103448e
|
@ -74,7 +74,7 @@ class UserGroupDetailView(AdminUserRequiredMixin, DetailView):
|
||||||
template_name = 'users/user_group_detail.html'
|
template_name = 'users/user_group_detail.html'
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
users = User.objects.exclude(id__in=self.object.users.all())
|
users = User.objects.exclude(id__in=self.object.users.all()).exclude(role=User.ROLE_APP)
|
||||||
context = {
|
context = {
|
||||||
'app': _('Users'),
|
'app': _('Users'),
|
||||||
'action': _('User group detail'),
|
'action': _('User group detail'),
|
||||||
|
|
Loading…
Reference in New Issue