Commit 6006d6e0 authored by 梁光意's avatar 梁光意

修改下发没有权限的问题

parent 10236183
Pipeline #9624 passed with stages
in 1 minute 9 seconds
......@@ -219,7 +219,7 @@ public class VariableServiceImpl implements VariableService {
if (StringUtils.isBlank(sendDTO.getUserId())) {
throw new SysException("访问类型为私有,请传入创建人");
}
if (currentUser.getUid().equals(sendDTO.getUserId())) {
if (!currentUser.getUid().equals(sendDTO.getUserId())) {
throw new SysException("没有访问权限");
}
} else if (AccessType.CUSTOM.value.equals(sendDTO.getAccessType())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment