equal
deleted
inserted
replaced
474 understand that since according to when a permission is checked, values returned |
474 understand that since according to when a permission is checked, values returned |
475 by rql expressions may changes, hence the permission being granted or not. |
475 by rql expressions may changes, hence the permission being granted or not. |
476 |
476 |
477 Here are the current rules: |
477 Here are the current rules: |
478 |
478 |
479 1. permission to add/update entity and its attributes are checked: |
479 1. permission to add/update entity and its attributes are checked on |
480 |
480 commit |
481 - on commit if the entity has been added |
|
482 |
|
483 - in an 'after_update_entity' hook if the entity has been updated. If it fails |
|
484 at this time, it will be retried on commit (hence you get the permission if |
|
485 you have it just after the modification or *at* commit time) |
|
486 |
481 |
487 2. permission to delete an entity is checked in 'before_delete_entity' hook |
482 2. permission to delete an entity is checked in 'before_delete_entity' hook |
488 |
483 |
489 3. permission to add a relation is checked either: |
484 3. permission to add a relation is checked either: |
490 |
485 |