class CompetitionsBankDetailsController {

    @SecuredBySpring(value = "PENDING_BANK_DETAILS_APPROVALS", description = "Project finance users can view and action pending bank details approvals for all competitions")
    @GetMapping("/status/pending-bank-details-approvals")
    @PreAuthorize("hasAnyAuthority('project_finance')")
    public String viewPendingBankDetailsApprovals(Model model, UserResource loggedInUser) {

        List<BankDetailsReviewResource> pendingBankDetails = bankDetailsRestService.getPendingBankDetailsApprovals().getSuccess();

        model.addAttribute("model", new CompetitionPendingBankDetailsApprovalsViewModel(pendingBankDetails));
        return "project/competition-pending-bank-details";
    }

}