Closed SriousTaken closed 6 years ago
This should be handled by this editpolicy rule, yet it isn't:
//If Compartment_Types is not set, then only one CompartmentType can be
//added in the top-level view (This will be named RoleModel).
Add CompartmentType (!Compartment_Types) when !InType(CompartmentType) and !ContainsCompartment();
Create CompartmentType (!Compartment_Types) when !InType(CompartmentType) and !ContainsCompartment();
Direct_Edit CompartmentType (true) when true;
Right now its possible to create as many Role Models as one want, when the compartment type feature is not chosen. It should be only possible to have Role Model at once. This should be ensured with the edit policies!