root不能增加同级
This commit is contained in:
+3
-2
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.constant.enums.CutEnum;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.extRepo.entity.ERFTreeDataVO;
|
||||
import com.jero.modules.extRepo.entity.ExtRepoData;
|
||||
@@ -75,9 +76,9 @@ public class ExtRepoFolderController extends JeroController<ExtRepoFolder, IExtR
|
||||
//增加同级文件夹
|
||||
if (!boo) {
|
||||
if (CutEnum.CN.getValue().equals(extRepoFolder.getCut())) {
|
||||
result.error500("没有父文件夹权限!");
|
||||
throw new JeroBootException("没有父文件夹权限!");
|
||||
} else {
|
||||
result.error500("You do not have parent folder permissions !");
|
||||
throw new JeroBootException("You do not have parent folder permissions !");
|
||||
}
|
||||
}
|
||||
extRepoFolder.setSupFolder(folder.getSupFolder());
|
||||
|
||||
Reference in New Issue
Block a user