equal
deleted
inserted
replaced
52 |
52 |
53 class _CheckEntityPermissionOp(hook.LateOperation): |
53 class _CheckEntityPermissionOp(hook.LateOperation): |
54 def precommit_event(self): |
54 def precommit_event(self): |
55 #print 'CheckEntityPermissionOp', self.session.user, self.entity, self.action |
55 #print 'CheckEntityPermissionOp', self.session.user, self.entity, self.action |
56 session = self.session |
56 session = self.session |
57 for values in session.transaction_data['check_entity_perm_op']: |
57 for values in session.transaction_data.pop('check_entity_perm_op'): |
58 entity = session.entity_from_eid(values[0]) |
58 entity = session.entity_from_eid(values[0]) |
59 action = values[1] |
59 action = values[1] |
60 entity.check_perm(action) |
60 entity.check_perm(action) |
61 check_entity_attributes(session, entity, values[2:]) |
61 check_entity_attributes(session, entity, values[2:]) |
62 |
62 |
63 def commit_event(self): |
63 def commit_event(self): |
64 pass |
64 pass |
65 |
65 |
66 |
66 |