21 | | * entityName: xref(MolgenisEntity) |
22 | | * entityId: int |
23 | | * actor: xref(MolgenisGroup [MolgenisUser extends MolgenisGroup?]) |
24 | | * permission: {owner, view, edit, execute} |
25 | | * unique(entityName,entityId,actor) |
| 21 | {{{ |
| 22 | #!text/xml |
| 23 | <entity name="MolgenisPermission" system="true"> |
| 24 | <field name="id" type="autoid" hidden="true" /> |
| 25 | <field name="role_" type="xref" xref_field="MolgenisRole.id" xref_label="name"/> |
| 26 | <field name="entity" type="xref" xref_field="MolgenisEntity.id" xref_label="className"/> |
| 27 | <field name="permission" type="enum" enum_options="[read,write,own]"/> |
| 28 | <!-- no use case for 'execute' so don't use it --> |
| 29 | </entity> |
| 30 | }}} |