feat(P17B-1,P17B-2): 补齐采购预算闭环与归档模型接口
这个提交包含在:
@@ -364,7 +364,11 @@ function buildMasterDataViewPreHandler(fastify) {
|
||||
await fastify.authenticate(request);
|
||||
const canView =
|
||||
fastify.hasPermission(request.employee, "masterdata.view") ||
|
||||
fastify.hasPermission(request.employee, "masterdata.manage");
|
||||
fastify.hasPermission(request.employee, "masterdata.manage") ||
|
||||
fastify.hasPermission(request.employee, "procurement.create") ||
|
||||
fastify.hasPermission(request.employee, "procurement.view_own") ||
|
||||
fastify.hasPermission(request.employee, "procurement.view_all") ||
|
||||
fastify.hasPermission(request.employee, "procurement.manage");
|
||||
|
||||
if (!canView) {
|
||||
throw new AppError({
|
||||
|
||||
在新工单中引用
屏蔽一个用户