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 <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-08-12 20:23:48 +02:00
parent f1275d0638
commit 97cc2085af
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 16 additions and 8 deletions

View file

@ -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!',

View file

@ -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: [],
};
}