空间编辑权判断

This commit is contained in:
暮光:城中城
2019-06-18 22:56:51 +08:00
parent 0f9f909d73
commit 89b32304bd

View File

@@ -59,6 +59,9 @@ public class WikiSpaceController {
if (SpaceType.isOthersPrivate(wikiSpaceSel.getType(), currentUser.getUserId(), wikiSpaceSel.getCreateUserId())) {
return DocResponseJson.warn("您没有该空间的编辑权!");
}
if (SpaceType.isOthersPersonal(wikiSpaceSel.getType(), currentUser.getUserId(), wikiSpaceSel.getCreateUserId())) {
return DocResponseJson.warn("您没有该空间的编辑权!");
}
wikiSpace.setUuid(null);
wikiSpace.setEditType(null);
wikiSpaceService.updateById(wikiSpace);