mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 14:50:24 +00:00
fix: 修复未选择用户,无法创建共享会话的问题
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user