Hi, i started to use access groups to restrict users from modifying and creating objects in my app and have some problems:
I have to check a list of properties inside an entity, and don’t know if i can do it right in the groovy script inside constraint editor?
So far i created a @MetaProperty which returns me a boolean, that says. should i have access to an object, and write a groovy script that should constraint modification {E}.isMetaProperty == true but this solution doesn’t work, cos it removes rights from all objects.
How could i restrict users from even opening edit window via Access Groups?
upd:
I include my sample project with created entities to clarify my questions, group and user is exported to a JSON files in ‘exports’ folder. sample.zip (35.5 KB)
This script can be used to disable the update operation of all Customer instances which have a vipCustomerType in the collection of their CustomerTypeEntries.
To restrict even opening edit window, use the constraintOperationType attribute for the corresponding actions, for example: