kshitijyelpale / blockchain-hyperledger-fabric-electronic-patient-records

GNU General Public License v3.0
49 stars 43 forks source link

Replacing hosp1admin with req.header.username #43

Closed sjathin closed 3 years ago

sjathin commented 3 years ago

Created this PR to fix the following issue:

  1. Login in as admin, create one patient.
  2. Login as patient and grant access to a doctor.
  3. Login as doctor, and view the patient details - this fails as connectToNetwork is done with hosp1admin

So replacing hosp1admin with req.headers.username

kshitijyelpale commented 3 years ago

Task linked: CU-ccwwhf Grant / Revoke API

sjathin commented 3 years ago

Yes