mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
Add site_setting to disable version checks
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
|
||||
Discourse.AdminDashboardRoute = Discourse.Route.extend({
|
||||
setupController: function(c) {
|
||||
return Discourse.VersionCheck.find().then(function(vc) {
|
||||
c.set('versionCheck', vc);
|
||||
return c.set('loading', false);
|
||||
});
|
||||
if( Discourse.SiteSettings.version_checks ) {
|
||||
return Discourse.VersionCheck.find().then(function(vc) {
|
||||
c.set('versionCheck', vc);
|
||||
return c.set('loading', false);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user