doc/tutorials/advanced/part02_security.rst
branch3.26
changeset 12466 68b0f200af8a
parent 12465 d6fc05be2b4c
child 12403 d901fc62eb01
equal deleted inserted replaced
12465:d6fc05be2b4c 12466:68b0f200af8a
    56   the value explained above
    56   the value explained above
    57 * add a `may_be_read_by` relation from `Folder`, `File` and `Comment` to `users`,
    57 * add a `may_be_read_by` relation from `Folder`, `File` and `Comment` to `users`,
    58   which will define who can see the entity
    58   which will define who can see the entity
    59 * security propagation will be done in hooks
    59 * security propagation will be done in hooks
    60 
    60 
    61 
    61 .. Note::
       
    62 
       
    63    What makes `visibility` an attribute and not a relation is that its object
       
    64    is a primitive type, here `String`.
       
    65 
       
    66    Other builtin primitives are String, Int, BigInt, Float, Decimal, Boolean,
       
    67    Date, Datetime, Time, Interval, Byte and Password and for more information
       
    68    read :ref:`EntityType`
    62 
    69 
    63 So the first thing to do is to modify my cube's :file:`schema.py` to define those
    70 So the first thing to do is to modify my cube's :file:`schema.py` to define those
    64 relations:
    71 relations:
    65 
    72 
    66 .. sourcecode:: python
    73 .. sourcecode:: python