Fix: service users must be ignored when calculating suggestion checkmark
Change-Id: I689c56fcd60ad4080d878e6fadfa9a057f3aeb8a
diff --git a/ui/suggest-owners.js b/ui/suggest-owners.js
index 1233bd5..bf4fff3 100644
--- a/ui/suggest-owners.js
+++ b/ui/suggest-owners.js
@@ -632,7 +632,10 @@
);
}
});
- if (accounts.length > 0 && suggestion.owners.owned_by_all_users) {
+ const nonServiceUser = account =>
+ !account.tags || account.tags.indexOf('SERVICE_USER') < 0;
+ if (suggestion.owners.owned_by_all_users &&
+ accounts.some(nonServiceUser)) {
hasSelected = true;
}
this.set(['suggestedOwners', sId, 'hasSelected'], hasSelected);