From: <hs...@us...> - 2011-12-06 21:59:47
|
Revision: 997 http://treebase.svn.sourceforge.net/treebase/?rev=997&view=rev Author: hshyket Date: 2011-12-06 21:59:41 +0000 (Tue, 06 Dec 2011) Log Message: ----------- Fixing Matrix check of whether a study was published from PURL redirect. Modified Paths: -------------- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSMatrixController.java Modified: trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSMatrixController.java =================================================================== --- trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSMatrixController.java 2011-12-06 21:01:56 UTC (rev 996) +++ trunk/treebase-web/src/main/java/org/cipres/treebase/web/controllers/PhyloWSMatrixController.java 2011-12-06 21:59:41 UTC (rev 997) @@ -45,7 +45,7 @@ throw new ObjectNotFoundException("Can't find study for matrix "+objectId); } - checkAccess(study.isPublished()); + checkAccess(matrix.getStudy().isPublished()); Map<String,String> params = new HashMap<String,String>(); params.put("id", ""+study.getId()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |