mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-20 06:15:37 +00: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 (!note.permission) {
|
||||
if (note.owner) {
|
||||
if (note.ownerId) {
|
||||
// TODO: Might explode if the user-defined permission does not exist
|
||||
note.permission = PermissionEnum[config.defaultPermission]
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue