[Bug #653] Fixed another issue very related with this bug calling the new method to get all roles.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
This commit is contained in:
Manuel Rego Casasnovas 2010-09-21 13:45:04 +02:00
parent 064cc52529
commit ded1a9a7ef

View file

@ -209,7 +209,7 @@ public class OrderDAO extends IntegrationEntityDAO<Order> implements
@Override
public List<Order> getOrdersByWriteAuthorization(User user) {
if (user.getRoles().contains(UserRole.ROLE_EDIT_ALL_ORDERS)) {
if (user.getAllRoles().contains(UserRole.ROLE_EDIT_ALL_ORDERS)) {
return getOrders();
}
else {