doc/tutorials/advanced/part02_security.rst
branch3.26
changeset 12465 d6fc05be2b4c
parent 12464 d26382fc15d8
child 12401 66d98cfdd914
equal deleted inserted replaced
12464:d26382fc15d8 12465:d6fc05be2b4c
    53 need some RQL expression. Here is the idea:
    53 need some RQL expression. Here is the idea:
    54 
    54 
    55 * add a `visibility` attribute on `Folder`, `File` and `Comment`, which may be one of
    55 * add a `visibility` attribute on `Folder`, `File` and `Comment`, which may be one of
    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 
       
    59   which will define who can see the entity
    58   which will define who can see the entity
    60 
    59 * security propagation will be done in hooks
    61 * security propagation will be done in hook.
    60 
       
    61 
    62 
    62 
    63 So the first thing to do is to modify my cube's :file:`schema.py` to define those
    63 So the first thing to do is to modify my cube's :file:`schema.py` to define those
    64 relations:
    64 relations:
    65 
    65 
    66 .. sourcecode:: python
    66 .. sourcecode:: python