Runtime Roles - Attribute permissions

Hi there, Im breaking my head to implement something here and its not working. I`m thinking this is a bug but maybe I could use some of your wisdom.

If I have an EmbeddableEntity like this example

public class User extends EmbeddableEntity {
@Column(name = “username”)
protected String username;

@Column(name = “username”)
protected String username;
}

My consumer could be

public class Task {
@Embedded

protected User lider;

@Embedded

protected User manager;

@Embedded

protected User customer;
}

I want to use attributes permission for one role for example, this role could edit only the customer, manager and lider will be read-only.

What happens is that the attribute permission only works if I set it on User Class, but that doesnt work for me cause I don`t want to forbid all the modifications, only the customer.
If I try to set only the customer as read-only it doesnt block anything.

This is the regular behavior of the platform or we`re facing a bug here?

Thanks for your patience.

Thank you for reporting the problem. We have created the issue in our GitHub.

1 Like