Browse Source

[Bugfix] 修复merge带来的问题

pull/1594/head
ibuler 6 years ago
parent
commit
8c12c382a5
  1. 2
      apps/terminal/backends/command/serializers.py
  2. 2
      apps/users/api.py

2
apps/terminal/backends/command/serializers.py

@ -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()

2
apps/users/api.py

@ -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…
Cancel
Save