Allow restoring from backups in development mode even if the setting is

off.
This commit is contained in:
Robin Ward
2014-08-28 17:02:26 -04:00
parent 464a922910
commit 9e2c72e277
5 changed files with 8 additions and 13 deletions

View File

@ -9,7 +9,7 @@ export default Ember.ArrayController.extend({
restoreDisabled: Em.computed.alias("status.restoreDisabled"),
restoreTitle: function() {
if (!Discourse.SiteSettings.allow_restore) {
if (!this.get('status.allowRestore')) {
return I18n.t("admin.backups.operations.restore.is_disabled");
} else if (this.get("status.isOperationRunning")) {
return I18n.t("admin.backups.operation_already_running");