feat: 后管菜单更名「外观专利数据库」——V191 改 columns.name(V190 已上产不可回改);routes 标题/页头 h3/403 文案同步;挂载测试断言随改
This commit is contained in:
+2
-2
@@ -81,11 +81,11 @@ public class AdminAppearancePatentCleanItemsController {
|
||||
private RequestOperator requireCleanItemsAccess(HttpServletRequest request) {
|
||||
AdminUserEntity operator = resolveOperator(request);
|
||||
if (operator == null || operator.getId() == null || operator.getId() <= 0) {
|
||||
throw new BusinessException(403, "无权访问外观专利无侵权数据");
|
||||
throw new BusinessException(403, "无权访问外观专利数据库");
|
||||
}
|
||||
boolean superAdmin = DeviceSessionPolicy.isSuper(adminAuthSupport.currentRole(operator));
|
||||
if (!superAdmin && !hasCleanItemsPermission(operator)) {
|
||||
throw new BusinessException(403, "无权访问外观专利无侵权数据");
|
||||
throw new BusinessException(403, "无权访问外观专利数据库");
|
||||
}
|
||||
return new RequestOperator(operator.getId(), superAdmin, operator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user