Skip to content

Commit

Permalink
Fix issue with permissions checking on legacyRecord model
Browse files Browse the repository at this point in the history
  • Loading branch information
big213 committed Oct 26, 2021
1 parent 7869f1b commit 1d9c755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/functions/src/schema/models/legacyRecord/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class LegacyRecordService extends PaginatedService {
- Email is not a requested field
*/
get: async ({ query }) => {
if (query.email) return false;
if (query?.email) return false;

return true;
},
Expand All @@ -37,7 +37,7 @@ export class LegacyRecordService extends PaginatedService {
- Email is not a requested field
*/
getMultiple: ({ query }) => {
if (query.email) return false;
if (query?.email) return false;

return true;
},
Expand Down

0 comments on commit 1d9c755

Please sign in to comment.