1 package org.tigris.scarab.screens.home; 2 3 48 49 50 import org.apache.turbine.RunData; 52 import org.apache.turbine.TemplateContext; 53 54 import org.tigris.scarab.screens.Default; 56 import org.tigris.scarab.om.MITList; 57 import org.tigris.scarab.om.ScarabUser; 58 59 67 public class XModuleList extends Default 68 { 69 72 public void doBuildTemplate(RunData data, TemplateContext context) 73 throws Exception 74 { 75 super.doBuildTemplate(data, context); 76 ScarabUser user = (ScarabUser)data.getUser(); 77 MITList currentList = user.getCurrentMITList(); 78 if (currentList != null && !currentList.isModifiable()) 79 { 80 user.setCurrentMITList(null); 81 } 82 } 83 } 84 | Popular Tags |