equal
deleted
inserted
replaced
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 |