use of net.jforum.security.XMLPermissionControl in project jforum2 by rafaelsteil.
the class GroupAction method permissions.
// Permissions
public void permissions() {
int id = this.request.getIntParameter("group_id");
PermissionControl pc = new PermissionControl();
pc.setRoles(DataAccessDriver.getInstance().newGroupSecurityDAO().loadRoles(id));
String xmlconfig = SystemGlobals.getValue(ConfigKeys.CONFIG_DIR) + "/permissions.xml";
List sections = new XMLPermissionControl(pc).loadConfigurations(xmlconfig);
GroupDAO gm = DataAccessDriver.getInstance().newGroupDAO();
this.context.put("sections", sections);
this.context.put("group", gm.selectById(id));
this.setTemplateName(TemplateKeys.GROUP_PERMISSIONS);
}
Aggregations