mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
commit
77fbfa33a1
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ export class Note extends Model<Note> {
|
||||||
}
|
}
|
||||||
// if no permission specified and have owner then give default permission in config, else default permission is freely
|
// if no permission specified and have owner then give default permission in config, else default permission is freely
|
||||||
if (!note.permission) {
|
if (!note.permission) {
|
||||||
if (note.owner) {
|
if (note.ownerId) {
|
||||||
// TODO: Might explode if the user-defined permission does not exist
|
// TODO: Might explode if the user-defined permission does not exist
|
||||||
note.permission = PermissionEnum[config.defaultPermission]
|
note.permission = PermissionEnum[config.defaultPermission]
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue