diff --git a/app/portainer/views/stacks/edit/stackController.js b/app/portainer/views/stacks/edit/stackController.js index 922fe63c3..d0719d086 100644 --- a/app/portainer/views/stacks/edit/stackController.js +++ b/app/portainer/views/stacks/edit/stackController.js @@ -497,7 +497,8 @@ angular.module('portainer.app').controller('StackController', [ $scope.composeSyntaxMaxVersion = endpoint.ComposeSyntaxMaxVersion; - $scope.stackType = $transition$.params().type; + $scope.stackType = parseInt($transition$.params().type, 10); + $scope.editorReadOnly = !Authentication.hasAuthorizations(['PortainerStackUpdate']); }