public int doStartTag() throws JspException {
Set<AcademicProgram> programs =
program != null ? Collections.singleton(program) : Collections.<AcademicProgram> emptySet();
Set<AdministrativeOffice> offices =
office != null ? Collections.singleton(office) : Collections.<AdministrativeOffice> emptySet();
AcademicAuthorizationGroup group =
AcademicAuthorizationGroup.get(AcademicOperationType.valueOf(operation), programs, offices, null);
if (group.isMember(Authenticate.getUser())) {
return EVAL_BODY_INCLUDE;
}
return SKIP_BODY;
}