mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 16:31:09 +08:00
DEV: Remove ember-cli flags from the backend (#17147)
…and other auxiliary code * Restore `QUNIT_EMBER_CLI` flag warning * Add `ALLOW_EMBER_CLI_PROXY_BYPASS`
This commit is contained in:
@ -8,16 +8,6 @@ class QunitController < ApplicationController
|
||||
}
|
||||
layout false
|
||||
|
||||
def is_ember_cli_proxy?
|
||||
request.headers["HTTP_X_DISCOURSE_EMBER_CLI"] == "true"
|
||||
end
|
||||
|
||||
# only used in non-ember-cli test / dev
|
||||
def index
|
||||
raise Discourse::NotFound.new if is_ember_cli_proxy? || EmberCli.enabled?
|
||||
raise Discourse::InvalidAccess.new if Rails.env.production?
|
||||
end
|
||||
|
||||
def theme
|
||||
raise Discourse::NotFound.new if !can_see_theme_qunit?
|
||||
|
||||
|
Reference in New Issue
Block a user