From 97cc2085af6a39933e01e238b5a22872ee2c0f27 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Wed, 12 Aug 2020 20:23:48 +0200 Subject: [PATCH] Update NotesService and HistoryService to use the new permission model. We now have separate sharedTo attributes for users and groups. Signed-off-by: David Mehren --- src/history/history.service.ts | 6 ++++-- src/notes/notes.service.ts | 18 ++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/history/history.service.ts b/src/history/history.service.ts index af49772b8..046b070d5 100644 --- a/src/history/history.service.ts +++ b/src/history/history.service.ts @@ -24,7 +24,8 @@ export class HistoryService { email: 'foo@example.com', photo: '', }, - sharedTo: [], + sharedToUsers: [], + sharedToGroups: [], }, tags: [], title: 'Title!', @@ -62,7 +63,8 @@ export class HistoryService { email: 'foo@example.com', photo: '', }, - sharedTo: [], + sharedToUsers: [], + sharedToGroups: [], }, tags: [], title: 'Title!', diff --git a/src/notes/notes.service.ts b/src/notes/notes.service.ts index aff40a396..aebd48c5e 100644 --- a/src/notes/notes.service.ts +++ b/src/notes/notes.service.ts @@ -26,7 +26,8 @@ export class NotesService { email: 'foo@example.com', photo: '', }, - sharedTo: [], + sharedToUsers: [], + sharedToGroups: [], }, tags: [], title: 'Title!', @@ -59,7 +60,8 @@ export class NotesService { email: 'foo@example.com', photo: '', }, - sharedTo: [], + sharedToUsers: [], + sharedToGroups: [], }, tags: [], title: 'Title!', @@ -93,7 +95,8 @@ export class NotesService { email: 'foo@example.com', photo: '', }, - sharedTo: [], + sharedToUsers: [], + sharedToGroups: [], }, tags: [], title: 'Title!', @@ -132,7 +135,8 @@ export class NotesService { email: 'foo@example.com', photo: '', }, - sharedTo: [], + sharedToUsers: [], + sharedToGroups: [], }, tags: [], title: 'Title!', @@ -164,7 +168,8 @@ export class NotesService { email: 'foo@example.com', photo: '', }, - sharedTo: [], + sharedToUsers: [], + sharedToGroups: [], }, tags: [], title: 'Title!', @@ -191,7 +196,8 @@ export class NotesService { email: 'foo@example.com', photo: '', }, - sharedTo: [], + sharedToUsers: [], + sharedToGroups: [], }; }