src/domain/catalogue.py
BeforeProposed
+1−1
4242
4343def approve(state, command):
4444 item = calibration(state, command['tenant'], command['id'])
45 require(bool(command['actor']), 'independent-review-required')
45 require(item['author'] != command['actor'], 'independent-review-required')
4646 if item['reviewer']:
4747 require(item['reviewer'] == command['actor'], 'already-reviewed')
4848 return {'id': item['id'], 'approved': True}