dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24136
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11788: quickfix for external reports, documents
------------------------------------------------------------
revno: 11788
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2013-08-24 15:31:19 +0200
message:
quickfix for external reports, documents
modified:
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ExternalAccessVoter.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ExternalAccessVoter.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ExternalAccessVoter.java 2013-08-23 16:05:01 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/vote/ExternalAccessVoter.java 2013-08-24 13:31:19 +0000
@@ -34,6 +34,8 @@
import org.hisp.dhis.common.CodeGenerator;
import org.hisp.dhis.common.IdentifiableObject;
import org.hisp.dhis.common.IdentifiableObjectManager;
+import org.hisp.dhis.document.Document;
+import org.hisp.dhis.report.Report;
import org.hisp.dhis.reporttable.ReportTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.AccessDecisionVoter;
@@ -63,6 +65,8 @@
externalClasses.put( "charts", Chart.class );
externalClasses.put( "maps", org.hisp.dhis.mapping.Map.class );
externalClasses.put( "reportTables", ReportTable.class );
+ externalClasses.put( "reports", Report.class );
+ externalClasses.put( "documents", Document.class );
}
// -------------------------------------------------------------------------