feat: 考试权限dsks666、页面内切俱乐部、商品板块仅集团可改

This commit is contained in:
XingQue
2026-06-26 06:07:52 +08:00
parent 34e79aa753
commit 85531da9eb
5 changed files with 125 additions and 64 deletions

View File

@@ -6872,6 +6872,9 @@ class HqbkxxView(APIView):
# 4. 检查是否有板块管理权限
if 'bankuai' not in permissions:
return Response({'code': 403, 'msg': '无板块管理权限'}, status=403)
scope_err = block_non_group_catalog_scope(request)
if scope_err:
return Response({'code': 400, 'msg': scope_err})
# 5. 查询所有板块
bankuai_list = []
@@ -6963,6 +6966,9 @@ class BkxgView(APIView):
# 4. 检查板块管理权限
if 'bankuai' not in permissions:
return Response({'code': 403, 'msg': '无板块管理权限'}, status=403)
scope_err = block_non_group_catalog_scope(request)
if scope_err:
return Response({'code': 400, 'msg': scope_err})
# 5. 获取操作类型
action = request.data.get('action')