Commit eb827573 authored by Matija Obreza's avatar Matija Obreza
Browse files

Fix: ensure ROLE_EVERYONE authority

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