Skip to content

Commit b52f7fc

Browse files
committed
minor edits
1 parent 99f8d3d commit b52f7fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ app.get('api/bluebutton/callback', async (req: Request, res: Response) => {
215215
// Check the scope of the current access token:
216216
const scopes: string[] = authToken.scope;
217217
// iterate scope entries here or check if a permission is in the scope
218-
if (authToken.scope.index("patient/Patient.r") > -1) {
218+
if (authToken.scope.index("patient/Patient.r") > -1 or authToken.scope.index("patient/Patient.rs") > -1) {
219219
// patient read access (patient/Patient.r) granted,
220220
// similarly can check patient search permission: patient/Patient.s, or
221221
// patient read and search permission: patient/Patient.rs

0 commit comments

Comments
 (0)