From aeab4d03de733259c613dc1beac67125bf22b73d Mon Sep 17 00:00:00 2001 From: j Date: Wed, 25 Jan 2017 17:39:12 +0100 Subject: [PATCH] keep private texts private --- pandora/document/migrations/0004_migrate_text.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/document/migrations/0004_migrate_text.py b/pandora/document/migrations/0004_migrate_text.py index e965c0da..c03242a1 100644 --- a/pandora/document/migrations/0004_migrate_text.py +++ b/pandora/document/migrations/0004_migrate_text.py @@ -69,6 +69,7 @@ def migrate_texts(apps, schema_editor): d.name = t.name d.user = t.user d.description = t.description + d.rightslevel = 2 if t.status == 'private' else 0 d.data['text'] = t.text d.data['embeds'] = t.embeds d.save()