fix: dingtalk auth perm (#7814)

Co-authored-by: feng626 <1304903146@qq.com>
pull/7815/head
fit2bot 2022-03-11 19:32:23 +08:00 committed by GitHub
parent e3bc54e764
commit b3632f6531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,9 @@ from .. import serializers
class DingTalkTestingAPI(GenericAPIView):
serializer_class = serializers.DingTalkSettingSerializer
rbac_perms = {
'POST': 'settings.change_auth'
}
def post(self, request):
serializer = self.serializer_class(data=request.data)