Changeset 5302 for openmrs-modules/addresshierarchy/web/src/org/openmrs/module/addresshierarchy/web/controller/PortletControlle.java
- Timestamp:
- 08/18/08 12:05:28 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs-modules/addresshierarchy/web/src/org/openmrs/module/addresshierarchy/web/controller/PortletControlle.java
r5288 r5302 271 271 } 272 272 273 if (Context.hasPrivilege(OpenmrsConstants.PRIV_VIEW_PROGRAMS) && 274 Context.hasPrivilege("View Patient Programs")) { 273 if (Context.hasPrivilege(OpenmrsConstants.PRIV_VIEW_PROGRAMS)) { 275 274 model.put("patientPrograms", Context.getProgramWorkflowService().getPatientPrograms(p)); 276 275 model.put("patientCurrentPrograms", Context.getProgramWorkflowService().getCurrentPrograms(p, null)); … … 303 302 model.put("person", p); 304 303 305 if ( Context.hasPrivilege("View Relationships")) {304 if (true) { 306 305 List<Relationship> relationships = new ArrayList<Relationship>(); 307 306 relationships.addAll(Context.getPersonService().getRelationships(p, false)); … … 352 351 if (o != null && !"".equals(o) && !model.containsKey("patientIds")) { 353 352 if (!model.containsKey("patientSet")) { 354 // Cohort ps = new Cohort((String) o);355 // model.put("patientSet", ps);356 353 model.put("patientIds", (String) o); 357 354 } … … 382 379 log.debug(portletPath + " took " + (System.currentTimeMillis() - timeAtStart) + " ms"); 383 380 } 384 381 System.out.println("i am here"); 385 382 return new ModelAndView(portletPath, "model", model); 386 383