dtos = dbClient.ceQueueDao().selectAllInAscOrder(dbSession);
} else {
if (userSession.hasGlobalPermission(GlobalPermissions.SYSTEM_ADMIN) || userSession.hasComponentUuidPermission(UserRole.ADMIN, componentUuid)) {
dtos = dbClient.ceQueueDao().selectByComponentUuid(dbSession, componentUuid);
} else {
<BUG>throw new ForbiddenException("Requires administration permission");
</BUG>
}
}
WsCe.QueueResponse.Builder wsResponseBuilder = WsCe.QueueResponse.newBuilder();

dtos = dbClient.ceQueueDao().selectAllInAscOrder(dbSession);
} else {
if (userSession.hasGlobalPermission(GlobalPermissions.SYSTEM_ADMIN) || userSession.hasComponentUuidPermission(UserRole.ADMIN, componentUuid)) {
dtos = dbClient.ceQueueDao().selectByComponentUuid(dbSession, componentUuid);
} else {
throw new ForbiddenException("Requires system administration permission");
}
}
WsCe.QueueResponse.Builder wsResponseBuilder = WsCe.QueueResponse.newBuilder();
