Commit 707b92d7 authored by Maxym Borodenko's avatar Maxym Borodenko Committed by Matija Obreza

Creating new lists of accessions impossible for USER

parent b4422825
Pipeline #2448 waiting for manual action with stages
in 3 minutes and 35 seconds
......@@ -71,7 +71,7 @@ public class AccessionListServiceImpl implements AccessionListService {
}
@Override
@PreAuthorize("isAuthenticated() and (#accessionList.id==null or hasRole('ADMINISTRATOR') or hasPermission(#accessionList, 'WRITE'))")
@PreAuthorize("isAuthenticated() and (#accessionList.persisted == false or hasRole('ADMINISTRATOR') or hasPermission(#accessionList, 'WRITE'))")
@Transactional
public void save(AccessionList accessionList) {
accessionListRepository.save(accessionList);
......
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