mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复merge带来的问题
parent
2ecfecb06f
commit
8c12c382a5
|
@ -12,6 +12,6 @@ class SessionCommandSerializer(serializers.Serializer):
|
|||
input = serializers.CharField(max_length=128)
|
||||
output = serializers.CharField(max_length=1024, allow_blank=True)
|
||||
session = serializers.CharField(max_length=36)
|
||||
org_id = serializers.CharField(max_length=36, required=False, default='')
|
||||
org_id = serializers.CharField(max_length=36, required=False, default='', allow_null=True)
|
||||
timestamp = serializers.IntegerField()
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ class UserUpdatePKApi(generics.UpdateAPIView):
|
|||
|
||||
class UserUnblockPKApi(generics.UpdateAPIView):
|
||||
queryset = User.objects.all()
|
||||
permission_classes = (IsSuperUser,)
|
||||
permission_classes = (IsOrgAdmin,)
|
||||
serializer_class = UserSerializer
|
||||
key_prefix_limit = "_LOGIN_LIMIT_{}_{}"
|
||||
key_prefix_block = "_LOGIN_BLOCK_{}"
|
||||
|
|
Loading…
Reference in New Issue