mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
Merge pull request #4009 from utkarshcmu/viewer-bug
Viewers restricted to edit panel
This commit is contained in:
commit
14952de2ee
@ -8,7 +8,7 @@ function (angular, coreModule) {
|
||||
coreModule.default.controller('JsonEditorCtrl', function($scope) {
|
||||
|
||||
$scope.json = angular.toJson($scope.object, true);
|
||||
$scope.canUpdate = $scope.updateHandler !== void 0;
|
||||
$scope.canUpdate = $scope.updateHandler !== void 0 && $scope.contextSrv.isEditor;
|
||||
|
||||
$scope.update = function () {
|
||||
var newObject = angular.fromJson($scope.json);
|
||||
|
Loading…
Reference in New Issue
Block a user