int perm=Integer.parseInt(request.getParameter("type"));
if(perm==Constants.FORUM_ADMIN && ! SecurityTools.isSystemAdmin(getAuthToken(request))){
throw new UnauthorizedException();
}
forum.addGroupPermission(group, perm);
} catch (NotFoundException e) {
errors.add("general", new ActionError("forumPermission.NotFound"));
} catch (UnauthorizedException ue) {
errors.add("general", new ActionError("forumPermission.Unauthorized"));