Changes
* The ''TARGETTYPERIGHT'' of the rights relation must be MetaMetaClass, because this is the meta class (i.e., the type) of meta classes (which we want to relate to user groups in this case). It's a bit tricky to get the MetaMetaClass using Studio. You'll have to do it using Whobert, fetching and assigning the MetaMetaClass with the following code:
** First, we'll ask the Environment for the meta meta class system object. We'll get the Environment from any (''BaseClass'') object, e.g., the parameter object for Whobert.
** UBIK.Kernel.MetaMetaClass mmc = anyObject.Environment.GetSystemObjectGetSystemMetaClass(UBIK.Kernel.SystemObjects.METACLASS); // replace anyObject with a UBIK object at hand
** Then assign ''mmc'' to the right target type of the relation:
** Relationship relation = anyObject.Environment.UBIKDataFactory().Relation(relationUid);
** RelationData rd = userGroup.GetRelationDataObject(rightsRelation, this.'''MetaClass''');
==== Controlling the visibility and editability of properties ====