Fixes #5689 - Plugin permissions are migrated too