1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

fix(migration): security property

This commit is contained in:
Torsten Dittmann 2021-01-18 13:27:04 +01:00
parent 5da6b31edb
commit 100e1f37e9

View file

@ -65,11 +65,11 @@ class V05 extends Migration
->removeAttribute('usersOauth' . \ucfirst($key) . 'Secret'); ->removeAttribute('usersOauth' . \ucfirst($key) . 'Secret');
} }
} }
$document->setAttribute('security', $document->getAttribute('security') ? true : false);
break; break;
case Database::SYSTEM_COLLECTION_PROJECTS:
case Database::SYSTEM_COLLECTION_TASKS: case Database::SYSTEM_COLLECTION_TASKS:
$document->setAttribute('security', ($document->getAttribute('security')) ? true : false); $document->setAttribute('security', $document->getAttribute('security') ? true : false);
break; break;
case Database::SYSTEM_COLLECTION_USERS: case Database::SYSTEM_COLLECTION_USERS: