mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
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:
parent
f1275d0638
commit
97cc2085af
2 changed files with 16 additions and 8 deletions
|
@ -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!',
|
||||
|
|
|
@ -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: [],
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue