mirror of https://github.com/jumpserver/jumpserver
fix: 修复未选择用户,无法创建共享会话的问题
parent
de61e780e3
commit
2ca72a4bff
|
@ -43,6 +43,8 @@ class SessionSharing(CommonModelMixin, OrgModelMixin):
|
|||
return 'Creator: {}'.format(self.creator)
|
||||
|
||||
def users_display(self):
|
||||
if not self.users:
|
||||
return []
|
||||
with tmp_to_root_org():
|
||||
user_ids = self.users.split(',')
|
||||
users = User.objects.filter(id__in=user_ids)
|
||||
|
|
Loading…
Reference in New Issue