Why removed the "hide" option for entity attribute permission?

Hi Team,

I realized that from 7.2 the “hide” option for entity attribute permission is removed, i think it’s a valuable feature, we can take advantage of the feature to hide some components for some attributes from UI . What considerations is it based upon? Is there any alternative solution for hiding some UI component for some attributes?

Related Post: 列表中能通过角色权限设置隐藏某些字段吗 - #5,来自 lyb - CUBA - jmix.cn

1 Like

Hi,
In 7.2 in the new role model all resources are not permitted by default (except UI permissions for components in screens).
All entity attributes are also hidden by default.
When setting up security, you are not hiding attributes, you are showing them (like in latest Nolan movie :slight_smile: )

Analogues of attribute permission values are:
pre-7.2 modify --> new modify
pre-7.2 read-only --> new read-only
pre-7.2 hide --> new default

Also pre-7.2 you could create “standard” role and hide some attributes, so “hidden” as separate option had sense.
In new role model you cannot substract permissions, only add them, so “hidden” as separate option isn’t necessary anymore.

Hi Alex,

Thanks for your explanation , now i get it.
And I just tried the new role policy,it’s great.