Commit b95b87d3 authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

Merge branch '346-impossibility-to-edit-descriptors-fix' into 'master'

Fix: Impossibility to Edit Descriptors

See merge request genesys-pgr/genesys-server!185
parents d4c17f71 bb443300
......@@ -414,7 +414,7 @@ public class DescriptorServiceImpl implements DescriptorService {
* catalog.model.traits.Descriptor)
*/
@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')")
public List<Dataset> getDatasets(final Descriptor 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