dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37904
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19354: minor revert, need to look more into aclService.canRead
------------------------------------------------------------
revno: 19354
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-06-11 15:20:31 +0700
message:
minor revert, need to look more into aclService.canRead
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/acl/DefaultAclService.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-services/dhis-service-core/src/main/java/org/hisp/dhis/acl/DefaultAclService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/acl/DefaultAclService.java 2015-06-10 12:26:55 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/acl/DefaultAclService.java 2015-06-11 08:20:31 +0000
@@ -217,10 +217,13 @@
@Override
public <T extends IdentifiableObject> boolean canRead( User user, Class<T> klass )
{
+ return true;
+ /*
Schema schema = schemaService.getSchema( klass );
return schema != null &&
(schema.getAuthorityByType( AuthorityType.READ ) == null || canAccess( user, schema.getAuthorityByType( AuthorityType.READ ) ));
+ */
}
@Override