change(dashboards): made home dashboard and json file dashboards editable unless otherwise specified in json file, closes #2567

This commit is contained in:
Torkel Ödegaard
2015-10-26 18:54:32 +01:00
parent 323e84375b
commit 09b3433e32
3 changed files with 9 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ function (coreModule) {
if (!$routeParams.slug) {
backendSrv.get('/api/dashboards/home').then(function(result) {
var meta = result.meta;
meta.canSave = meta.canShare = meta.canEdit = meta.canStar = false;
meta.canSave = meta.canShare = meta.canStar = false;
$scope.initDashboard(result, $scope);
});
return;