Commit eb827573 authored by Matija Obreza's avatar Matija Obreza

Fix: ensure ROLE_EVERYONE authority

parent 305e4c53
...@@ -785,7 +785,7 @@ public class CustomAclServiceImpl implements CustomAclService { ...@@ -785,7 +785,7 @@ public class CustomAclServiceImpl implements CustomAclService {
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.READ_UNCOMMITTED) @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.READ_UNCOMMITTED)
@PreAuthorize("hasRole('ADMINISTRATOR') or hasPermission(#entity, 'ADMINISTRATION')") @PreAuthorize("hasRole('ADMINISTRATOR') or hasPermission(#entity, 'ADMINISTRATION')")
public void makePubliclyReadable(AclAwareModel entity, boolean publiclyReadable) { public void makePubliclyReadable(AclAwareModel entity, boolean publiclyReadable) {
AclSid roleEveryone = getAuthoritySid("ROLE_EVERYONE"); AclSid roleEveryone = ensureAuthoritySid("ROLE_EVERYONE");
if (!publiclyReadable) { if (!publiclyReadable) {
final AclObjectIdentity objectIdentity = ensureObjectIdentity(entity); final AclObjectIdentity objectIdentity = ensureObjectIdentity(entity);
......
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