update
This commit is contained in:
@@ -34,6 +34,8 @@ class JsMindView(LoginRequiredJSONMixin, ListAPIView):
|
||||
if pk is not None:
|
||||
# 查询导图详细 查看用户是否有权限(创建者)
|
||||
mind = CooperationMind.objects.filter(id=pk, creator_user_id=user.id).first()
|
||||
if mind is None:
|
||||
return build_response(code=CODE_FAILED, msg="无权限")
|
||||
# 序列化
|
||||
serializer = CooperationMindSerializer(mind)
|
||||
return build_response(data=serializer.data)
|
||||
|
||||
Reference in New Issue
Block a user