server/securityhooks.py
changeset 478 49dfd0bb422c
parent 475 b32a5772ff06
child 479 ac5c9442b1fd
equal deleted inserted replaced
474:c9b0c3c06be0 478:49dfd0bb422c
    52         try:
    52         try:
    53             # check user has permission right now, if not retry at commit time
    53             # check user has permission right now, if not retry at commit time
    54             entity.check_perm('update')
    54             entity.check_perm('update')
    55             check_entity_attributes(session, entity)
    55             check_entity_attributes(session, entity)
    56         except Unauthorized:
    56         except Unauthorized:
       
    57             entity.clear_local_perm_cache('update')
    57             CheckEntityPermissionOp(session, entity=entity, action='update')
    58             CheckEntityPermissionOp(session, entity=entity, action='update')
    58         
    59         
    59 def before_del_entity(session, eid):
    60 def before_del_entity(session, eid):
    60     if not session.is_super_session:
    61     if not session.is_super_session:
    61         eschema = session.repo.schema[session.describe(eid)[0]]
    62         eschema = session.repo.schema[session.describe(eid)[0]]