[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:
parent
064cc52529
commit
ded1a9a7ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue