Project

General

Profile

Revision b9188a94

IDb9188a942247f5501db72e11d1d61d4d08d5a900
Parent 74ab8c12
Child c3be000f

Added by Andreas Kohlbecker about 3 years ago

ref #7723 adding missing permission check to RegistrationServiceImpl to supress unpublished registrations

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/RegistrationServiceImpl.java
70 70
    private INameService nameService;
71 71

  
72 72

  
73

  
74

  
73 75
    /**
74 76
     * {@inheritDoc}
75 77
     */
......
78 80
    public Pager<Registration> page(Optional<Reference> reference, Collection<RegistrationStatus> includedStatus,
79 81
            Integer pageSize, Integer pageIndex, List<String> propertyPaths) {
80 82

  
83
        if( !userHelper.userIsAutheticated() || userHelper.userIsAnnonymous() ) {
84
            includedStatus = Arrays.asList(RegistrationStatus.PUBLISHED);
85
        }
86

  
81 87
        long numberOfResults = dao.count(reference, includedStatus);
82 88

  
83 89
        List<Registration> results = new ArrayList<>();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)