Merge pull request #802 from MISP/JakubOnderka-patch-2

fix: PyMISP.get_user_setting method
pull/804/head
Raphaël Vinot 2021-10-28 16:34:43 -04:00 committed by GitHub
commit f85ccb3e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3146,7 +3146,7 @@ class PyMISP:
query: Dict[str, Any] = {'setting': user_setting}
if user:
query['user_id'] = get_uuid_or_id_from_abstract_misp(user)
response = self._prepare_request('POST', 'userSettings/getSetting')
response = self._prepare_request('POST', 'userSettings/getSetting', data=query)
user_setting_j = self._check_json_response(response)
if not (self.global_pythonify or pythonify) or 'errors' in user_setting_j:
return user_setting_j