diff --git a/.gitignore b/.gitignore index 5e2c5cb..55d02be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -node_modules node logs/ *.log diff --git a/public/js/controllers.js b/public/js/controllers.js index 5341a50..3ae17cf 100644 --- a/public/js/controllers.js +++ b/public/js/controllers.js @@ -347,10 +347,12 @@ biomed.ClientEditCtrl = function($scope, $routeParams, Clients) { } $scope.toggleFrequency = function(frequency, month) { - $scope.master.frequencies[frequency][month] =! $scope.master.frequencies[frequency][month]; - Clients.update({id: $scope.master._id}, $scope.master, function() { - updatePms(); - }); + if (accountHasPermission('system.edit')) { + $scope.master.frequencies[frequency][month] =! $scope.master.frequencies[frequency][month]; + Clients.update({id: $scope.master._id}, $scope.master, function() { + updatePms(); + }); + } } }; diff --git a/public/partials/clients/edit.html b/public/partials/clients/edit.html index 40146a5..7f32cae 100644 --- a/public/partials/clients/edit.html +++ b/public/partials/clients/edit.html @@ -6,8 +6,8 @@

{{master.name}}

{{master.identifier}}

- Create new Workorder - Create new Meeting + Create new Workorder + Create new Meeting
@@ -18,7 +18,7 @@
{{master.name}}
{{master.identifier}}
- Edit + Edit
@@ -49,7 +49,7 @@ {{master.address.street1}}
{{master.address.street2}}
{{master.address.city}}, {{master.address.state}}. {{master.address.zip}}
- Edit + Edit
@@ -152,7 +152,7 @@ {{master.contacts[0].name}}
{{master.contacts[0].phone}}
{{master.contacts[0].email}}
- Edit + Edit
@@ -187,7 +187,7 @@ {{master.contacts[1].name}}
{{master.contacts[1].phone}}
{{master.contacts[1].email}}
- Edit + Edit
@@ -330,7 +330,7 @@
{{master.notes.internal}}
- Edit + Edit
@@ -352,7 +352,7 @@
{{master.notes.tech}}
- Edit + Edit
diff --git a/public/partials/clients/index.html b/public/partials/clients/index.html index d0f92e0..6318f2a 100644 --- a/public/partials/clients/index.html +++ b/public/partials/clients/index.html @@ -8,7 +8,7 @@
- Create new Client + Create new Client
Search:
@@ -38,4 +38,4 @@
-
\ No newline at end of file +
diff --git a/public/partials/schedule/index.html b/public/partials/schedule/index.html index 0be5909..efd191a 100644 --- a/public/partials/schedule/index.html +++ b/public/partials/schedule/index.html @@ -8,8 +8,8 @@
- Create new Workorder - Create new Meeting + Create new Workorder + Create new Meeting View PMs
Group: diff --git a/public/partials/schedule/pms.html b/public/partials/schedule/pms.html index 197bc99..84a8a5f 100644 --- a/public/partials/schedule/pms.html +++ b/public/partials/schedule/pms.html @@ -8,7 +8,7 @@
- Create new Workorder + Create new Workorder
Month:
diff --git a/public/partials/users/index.html b/public/partials/users/index.html index bec6ae2..d742cea 100644 --- a/public/partials/users/index.html +++ b/public/partials/users/index.html @@ -21,7 +21,7 @@ Groups - Permissions + Permissions Name @@ -34,6 +34,7 @@ Portal Tags Messages + Edit Admin @@ -52,8 +53,8 @@ + - diff --git a/public/partials/workorders/edit.html b/public/partials/workorders/edit.html index a91ba94..5c19495 100644 --- a/public/partials/workorders/edit.html +++ b/public/partials/workorders/edit.html @@ -17,7 +17,7 @@
{{master.status}}
- Edit + Edit
@@ -46,7 +46,7 @@
{{email}}, - Edit + Edit
@@ -70,7 +70,7 @@
{{master.reason}}
{{master.remarks}}
- Edit + Edit
@@ -139,7 +139,7 @@
From {{master.scheduling.start | date}} {{master.scheduling.start | time}} to {{master.scheduling.end | date}} {{master.scheduling.end | time}}
TechsAttendees: {{ master.techs | techs }}
- Edit + Edit
diff --git a/public/partials/workorders/index.html b/public/partials/workorders/index.html index 1c30293..52174f3 100644 --- a/public/partials/workorders/index.html +++ b/public/partials/workorders/index.html @@ -6,8 +6,8 @@