/**
* 如果是指定组的成员显示提交表单,否则显示出错页面.
*/
public void displaySearchFrom(Properties properties, Locale locale, OutputStream outputstream)
throws Exception {
boolean isAdmin = false;
PrintWriter printwriter = getPrintWriter(outputstream, locale);
Properties doctrends = new Properties();
wt.org.WTUser currentUser = (wt.org.WTUser) wt.session.SessionHelper.manager.getPrincipal();
Enumeration enu = currentUser.parentGroupNames();
while (enu.hasMoreElements()) {
String group = (String) enu.nextElement();
if (group.equalsIgnoreCase("Administrators")
|| group.equalsIgnoreCase("CMO Administrators")) {
isAdmin = true;
break;
}
}
权限1
最新推荐文章于 2023-02-10 15:04:05 发布