Commit 8dc64050 authored by Matija Obreza's avatar Matija Obreza

Merge branch '26-preauthorize-for-service-method' into 'master'

PreAuthorize for service method

Closes #26

See merge request genesys-pgr/application-blocks!26
parents ea5cec8e 2d4cd748
......@@ -371,6 +371,7 @@ public class CustomAclServiceImpl implements CustomAclService {
*/
@Override
@Transactional(readOnly = true)
@PreAuthorize("hasRole('ADMINISTRATOR') or hasPermission(#objectIdentity.objectIdIdentity, #objectIdentity.aclClass.aclClass, 'ADMINISTRATION')")
public List<AclEntry> getAclEntries(final AclObjectIdentity objectIdentity) {
return aclEntryPersistence.findByObjectIdentity(objectIdentity);
}
......
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