File tree Expand file tree Collapse file tree
src/Migration/Destinations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3151,9 +3151,8 @@ protected function createApiKey(ApiKey $resource): bool
31513151 try {
31523152 $ this ->dbForPlatform ->createDocument ('keys ' , new UtopiaDocument ([
31533153 '$id ' => ID ::unique (),
3154- // SDK's Key model doesn't expose $permissions, so we can't read the source doc's perms.
3155- // Mirror appwrite/appwrite's createKey controller default — `dbForPlatform.keys` is
3156- // gated by endpoint scope, not document perms, so this is the upstream invariant.
3154+ // SDK's Key model doesn't expose $permissions, so we can't copy source perms through.
3155+ // Mirror appwrite/appwrite's createKey controller so migrated docs match natively-created keys.
31573156 '$permissions ' => [
31583157 Permission::read (Role::any ()),
31593158 Permission::update (Role::any ()),
You can’t perform that action at this time.
0 commit comments