FIX: Only block local edits for git-sourced themes (#11450)

Themes uploaded as zip files are given a row in the `remote_themes` table to store metadata, even though they are not truly remote.
This commit is contained in:
David Taylor
2020-12-09 19:41:42 +00:00
committed by GitHub
parent 0116897ac9
commit d1d37473d4
4 changed files with 20 additions and 4 deletions
@@ -28,7 +28,7 @@ export default Route.extend({
const fields = wrapper.model
.get("fields")
[wrapper.target].map((f) => f.name);
if (wrapper.model.remote_theme) {
if (wrapper.model.remote_theme && wrapper.model.remote_theme.is_git) {
this.transitionTo("adminCustomizeThemes.index");
return;
}