mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-10-20 14:12:10 -04:00
67e60a3c37
We now use the new permissions split in users and groups. Also the note now knows the colors of its authors. Signed-off-by: David Mehren <git@herrmehren.de>
19 lines
399 B
TypeScript
19 lines
399 B
TypeScript
import { Column, Entity, ManyToOne } from 'typeorm/index';
|
|
import { Group } from '../groups/group.entity';
|
|
import { Note } from '../notes/note.entity';
|
|
|
|
@Entity()
|
|
export class NoteGroupPermission {
|
|
@ManyToOne(_ => Group, { primary: true })
|
|
group: Group;
|
|
|
|
@ManyToOne(
|
|
_ => Note,
|
|
note => note.groupPermissions,
|
|
{ primary: true },
|
|
)
|
|
note: Note;
|
|
|
|
@Column()
|
|
canEdit: boolean;
|
|
}
|