Dynamic Attribute Permissions

We are having issues getting the permissions right in our application. We cannot seem to make the Dynamic Attributes in the Runtime Properties windows editable.

Our security implements a default “User” role which is a type of Read Only role, and then we create additional roles to stack on top to give users edit and create access to the entities with which they will be working. We cannot seem to give these additional roles the ability to edit the Dynamic Attribute Values however. I have tried allowing all CRUD operations on all of the entities pertaining to Category Attributes including Category Attribute Value which I would have thought was the one we needed.

image

Hi!

As I can see, you use Cuba Platform 7.1. Since this version there is new web component DynamicAttributesPanel that can be used with new Screen API.

I tried to use this component in your sample project and there are the results:
User with “user” role:

User with “Designer” role:

RuntimePropertiesFrame is a legacy component, so if you have the opportunity to switch to DynamicAttributesPanel, please try to do so.

Regards,
Oleg.

I am aware of the new API and we do have plans to update our screens soon. However our application is quite large and we won’t have time to update this customers project before go live. Are there any plans to fix the bug in the legacy runtime properties frame? We updated to Cuba 7 as it was advertised the system would be backwards compatible with the legacy screens and components.

Thank you,
Corey Amoruso

GitHub issue was created for this problem: RuntimePropertiesFrame ignores Roles's permissions · Issue #2516 · cuba-platform/cuba · GitHub

Regards,
Oleg.

1 Like