mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
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:
@ -291,7 +291,7 @@ class Admin::ThemesController < Admin::AdminController
|
||||
end
|
||||
|
||||
def ban_for_remote_theme!
|
||||
raise Discourse::InvalidAccess if @theme.remote_theme
|
||||
raise Discourse::InvalidAccess if @theme.remote_theme&.is_git?
|
||||
end
|
||||
|
||||
def add_relative_themes!(kind, ids)
|
||||
|
Reference in New Issue
Block a user