Skip to content

Commit

Permalink
Make it not possible to open edit section for system defined submissi…
Browse files Browse the repository at this point in the history
…on statuses
  • Loading branch information
evilaliv3 committed May 24, 2019
1 parent a2e64ad commit eb58063
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/app/js/controllers/admin/case_management.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ GLClient.controller("AdminCaseManagementCtrl", ["$scope", function($scope){
function ($scope, $http, AdminSubmissionStatusResource) {
$scope.editing = false;
$scope.toggleEditing = function () {
if ($scope.submissions_status.system_defined) {
return;
}

$scope.editing = !$scope.editing;
};

Expand Down

0 comments on commit eb58063

Please sign in to comment.