public void addGroupPermission(Group group, int permissionType) throws UnauthorizedException {
//Don't let someone become a System Admin through this method.
//The ForumPermissions class probably needs to be changed.
if (permissionType == Constants.SYSTEM_ADMIN) {
throw new UnauthorizedException();
}
if (permissions.isSystemOrForumAdmin()) {
forum.addGroupPermission(group, permissionType);
} else {
throw new UnauthorizedException();
}
}