mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-24 09:18:39 +00:00
Vnc (#2226)
* [Update] 优化授权协议, 支持vnc * [Update] 添加协议vnc * [Update] 修改系统用户添加 * [Update] 修改vnc信息
This commit is contained in:
@@ -12,8 +12,6 @@ from .models import AssetPermission
|
||||
class AssetPermissionForm(OrgModelForm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if 'initial' not in kwargs:
|
||||
return
|
||||
users_field = self.fields.get('users')
|
||||
if hasattr(users_field, 'queryset'):
|
||||
users_field.queryset = current_org.get_org_users()
|
||||
|
||||
Reference in New Issue
Block a user