Changes between Version 2 and Version 3 of AuthModule/RowLevelPermission


Ignore:
Timestamp:
2011-04-30T10:40:55+02:00 (14 years ago)
Author:
Morris Swertz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AuthModule/RowLevelPermission

    v2 v3  
    1919
    2020Example fields in this permission table:
    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}}}
    2631
    2732=== 2. Automatic filtering of any 'row level secured entity' using subselects ===