recurringOffer.getRecurringOfferConfiguration().getCreatorTask().setEnabled(false);
return null;
}
Authority organisationAuthority = Authority.getOrganisationAuthority(getPersistenceManager());
// userID references the principal, i.e. the currently logged-in user.
UserID userID = SecurityReflector.getUserDescriptor().getUserObjectID();
// TODO set problem key instead of assert (which throws an exception and thus rolls the whole transaction back).
organisationAuthority.assertContainsRoleRef(userID, org.nightlabs.jfire.trade.RoleConstants.editOrder);
organisationAuthority.assertContainsRoleRef(userID, org.nightlabs.jfire.trade.RoleConstants.editOffer);