Commit e693ac194da39229ca617c7967b5981935086e9a
1 parent
ac6645d0
[FIX] CRM:数据权限切面对无登录用户的系统调用放行,修公海自动掉落 Null key 恒失败(A34)- #1221
#1221
Showing
1 changed file
with
1 additions
and
0 deletions
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/framework/permission/core/aop/CrmPermissionAspect.java
| ... | ... | @@ -45,6 +45,7 @@ public class CrmPermissionAspect { |
| 45 | 45 | |
| 46 | 46 | @Before("@annotation(crmPermission)") |
| 47 | 47 | public void doBefore(JoinPoint joinPoint, CrmPermission crmPermission) { |
| 48 | + // 对应 issue:https://github.com/YunaiV/ruoyi-vue-pro/pull/1221 | |
| 48 | 49 | // 0. 系统调用(定时任务/异步线程等,无登录用户)不走数据权限校验,直接放行。 |
| 49 | 50 | // 数据权限是“按登录用户”的访问控制;/admin-api 外部请求必然有登录用户, |
| 50 | 51 | // 故登录用户为 null 只可能是系统内部调用(如公海自动掉落定时任务),属可信进程。 | ... | ... |