Commit 981f374e authored by handolukats's avatar handolukats
Browse files

Removed privilege check from findOfficialGroupEmtaks listener

parent 05ca2944
......@@ -15,7 +15,6 @@ import org.springframework.stereotype.Component;
import java.util.List;
@Component
@PreAuthorize("@accessController.hasOfficialPrivilege({T(ee.sm.ti.teis.types.enums.RolePrivilegeCode).TI_VIEW_OFFICIALS_GROUPS})")
public class OfficialsGroupEmtakListener {
private final OfficialsGroupEmtakService service;
......@@ -38,6 +37,7 @@ public class OfficialsGroupEmtakListener {
}
@RabbitListener(queues = {QueueConfig.GW_CREATE_OFFICIALS_GROUP_EMTAK_CODES_QUEUE})
@PreAuthorize("@accessController.hasOfficialPrivilege({'TI_VIEW_OFFICIALS_GROUPS'})")
public CreateOfficialsGroupEmtakCodesResponse createOfficialsGroupEmtakCodes(CreateOfficialsGroupEmtakCodesRequest request) {
service.validateCreateRequest(request);
CreateOfficialsGroupEmtakCodesResponse response = new CreateOfficialsGroupEmtakCodesResponse();
......@@ -47,6 +47,7 @@ public class OfficialsGroupEmtakListener {
}
@RabbitListener(queues = {QueueConfig.GW_DELETE_OFFICIALS_GROUP_EMTAK_QUEUE})
@PreAuthorize("@accessController.hasOfficialPrivilege({'TI_VIEW_OFFICIALS_GROUPS'})")
public DeleteOfficialsGroupEmtakResponse deleteOfficialsGroupEmtak(DeleteOfficialsGroupEmtakRequest request) {
final OfficialsGroupEmtakEntity officialsGroupEntity = service.validateAndFetch(request.getPayload().getGroupEmtakId());
DeleteOfficialsGroupEmtakResponse response = new DeleteOfficialsGroupEmtakResponse();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment