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