Commit bb443300 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov

Fix: Impossibility to Edit Descriptors

parent d4c17f71
...@@ -414,7 +414,7 @@ public class DescriptorServiceImpl implements DescriptorService { ...@@ -414,7 +414,7 @@ public class DescriptorServiceImpl implements DescriptorService {
* catalog.model.traits.Descriptor) * catalog.model.traits.Descriptor)
*/ */
@Override @Override
@PreAuthorize("#descriptor.isPublished() || hasPermission(#descriptor, 'read')") @PreAuthorize("hasRole('ADMINISTRATOR') || #descriptor.isPublished() || hasPermission(#descriptor, 'read')")
@PostFilter("hasRole('ADMINISTRATOR') || filterObject==null || filterObject.isPublished() || hasPermission(filterObject, 'write')") @PostFilter("hasRole('ADMINISTRATOR') || filterObject==null || filterObject.isPublished() || hasPermission(filterObject, 'write')")
public List<Dataset> getDatasets(final Descriptor descriptor) { public List<Dataset> getDatasets(final Descriptor descriptor) {
final List<Dataset> list = descriptorRepository.listDatasets(descriptor); final List<Dataset> list = descriptorRepository.listDatasets(descriptor);
......
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