get_studies_for_user is no longer a static method

This commit is contained in:
mike cullerton 2021-07-09 10:37:57 -04:00
parent dad2de9f0c
commit 690c059335
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def user_studies():
"""Returns all the studies associated with the current user. """
user = UserService.current_user(allow_admin_impersonate=True)
StudyService.synch_with_protocol_builder_if_enabled(user)
studies = StudyService.get_studies_for_user(user)
studies = StudyService().get_studies_for_user(user)
results = StudySchema(many=True).dump(studies)
return results