Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 067718eb

Přidáno uživatelem Jakub Danek před více než 5 roky(ů)

re #37 secured access to request list processes

Zobrazit rozdíly:

server/src/main/java/org/danekja/ymanager/business/ApiManager.java
45 45
    }
46 46

  
47 47
    @Override
48
    @IsEmployer
48 49
    public List<VacationRequest> getVacationRequests(Status status) throws RESTFullException {
49 50
        try {
50 51
            return status == null ? requestRepository.getAllVacationRequests() : requestRepository.getAllVacationRequests(status);
......
55 56
    }
56 57

  
57 58
    @Override
59
    @IsEmployer
58 60
    public List<AuthorizationRequest> getAuthorizationRequests(Status status) throws RESTFullException {
59 61
        try {
60 62
            return status == null ? requestRepository.getAllAuthorizations() : requestRepository.getAllAuthorizations(status);

Také k dispozici: Unified diff