Uploaded image for project: 'PhenoTips'
  1. PT-2796

Family script service should use current user credentials

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 1.3-milestone-3
    • Components: patient-data
    • Labels:
      None

      Description

      Currently PatientScriptService internally uses SecurePatientRepository, which uses current user credential for all created patient, e.g.

          @Override
          public Patient create()
          {
              return create(this.userManager.getCurrentUser());
          }
      

      FamilyScriptService does not do anything like that, resulting in XWikiGuest as the user responsible for most family updates. FamilyScriptServide should be refactored to work the same way PatientScriptService does

        Attachments

          Activity

            People

            • Assignee:
              veronikaslc Veronika Koltunova
              Reporter:
              asm Andrew Misyura
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: