Skip to content

Commit

Permalink
修改权限问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoujingjie committed Nov 7, 2017
1 parent 47dac35 commit 81ba42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Object upload(@RequestParam("file") List<MultipartFile> files,@RequestPar
@Ignore
@GetMapping("/{relatedId}")
public Object get(@PathVariable String relatedId, @RequestParam String projectId,User user){
ServiceTool.checkUserHasAccessPermission(projectId,user);
//ServiceTool.checkUserHasAccessPermission(projectId,user);
List<Attach> attaches= ServiceFactory.instance().getAttachsByRelatedId(relatedId);
return new _HashMap<>()
.add("fileAccess", ConfigUtils.getFileAccessURL())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public ModelAndView docView(@PathVariable String docId,
if (user != null) {
//访问权限
editPermission = ServiceFactory.instance().checkUserHasProjectEditPermission(user.getId(), doc.getProjectId());
AssertUtils.isTrue(editPermission || (!editPermission && !editing),"无操作权限");
//AssertUtils.isTrue(editPermission || (!editPermission && !editing),"无操作权限");
}

List<PluginInfo> pluginInfos = PluginManager.getInstance().getPlugins(Event.DOC_EV);
Expand Down

0 comments on commit 81ba42e

Please sign in to comment.