doc/book/en/devrepo/datamodel/definition.rst
changeset 9320 15bd24f9b9e0
parent 9255 46f41c3e1443
child 9395 96dba2efd16d
equal deleted inserted replaced
9309:cd45a1cc9b38 9320:15bd24f9b9e0
   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