use of org.hisp.dhis.eventchart.EventChart in project dhis2-core by dhis2.
the class AclServiceTest method testCanUpdatePrivateEventChart.
@Test
public void testCanUpdatePrivateEventChart() {
User user = createAdminUser("F_DATAELEMENT_PRIVATE_ADD");
EventChart eventChart = new EventChart();
eventChart.setAutoFields();
eventChart.setUser(user);
eventChart.setPublicAccess(AccessStringHelper.DEFAULT);
assertTrue(aclService.canUpdate(user, eventChart));
}
Aggregations