mirror of
https://gitee.com/dromara/zyplayer-doc.git
synced 2026-05-14 11:22:07 +08:00
空间编辑权判断
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user