Skip to content

Commit

Permalink
Merge pull request #4 from e-gov/PH-643
Browse files Browse the repository at this point in the history
PH-643 Python rakendus ei tohi nõuda document objekti volituse lisamisel
  • Loading branch information
ArtyomDevNow committed Jun 26, 2023
2 parents 0026761 + 993b6af commit eeddb55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def get_representees_delegates_mandates(representee_identifier):
methods=['POST'])
def post_representee_delegate_mandate(representee_identifier, delegate_identifier):
xroad_user_id = request.headers.get('X-Road-UserId')
xroad_represented_party = request.headers.get('X-Road-Represented-Party')
app.logger.info(f'X-Road-UserId: {xroad_user_id} is about to add a mandate')

error_config = app.config['SETTINGS']['errors']['legal_person_format_validation_failed']
Expand Down
3 changes: 1 addition & 2 deletions api/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ def extract_mandate_data(payload):
data['data_created_by'] = data_.get('createdBy', '')
data['data_original_mandate_id'] = data_.get('originalMandateId')
data['document_uuid'] = document.get('uuid')
if document.get('singleDelegate') and document.get('uuid'):
data['data_can_display_document_to_delegate'] = True
data['data_can_display_document_to_delegate'] = bool(document.get('singleDelegate') and document.get('uuid'))

return data

Expand Down

0 comments on commit eeddb55

Please sign in to comment.